[@mui/joy] components
is not in Theme
type
#42245
Labels
package: joy-ui
Specific to @mui/joy
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
typescript
Steps to reproduce
Link to live example: (required)
https://codesandbox.io/p/sandbox/morning-brook-wjkmj4?file=%2Fsrc%2FDemo.tsx
Steps:
components
fromuseTheme
resultCurrent behavior
There is a TS error when trying to access
theme.components
even though it is definitely there.Expected behavior
I think
components
should be part of theTheme
type by default, even if it's an optional type - I have to overrideTheme
type for it to work as expectedContext
No response
Your environment
npx @mui/envinfo
Search keywords: mui, joy, theme, components, type
The text was updated successfully, but these errors were encountered: