No Auto-completions / Suggestions for Custom styled
components!
#34768
Labels
docs
Improvements or additions to the documentation
package: material-ui
Specific to @mui/material
typescript
Duplicates
Latest version
Steps to reproduce 🕹
Steps:
styled
utility.createTheme
function.Current behavior 😯
I was trying to compose a Flex component for all the flexbox related layouts in my application.
I had a look at the documentation, and it worked.
However, the developer experience isn't great, and I'm not getting any auto-completions in my VS Code for this custom component, neither in my component nor in the Custom Component section of
createTheme()
block.Here's my implementation.
Component.
Variants
While using it, I'm not getting the prop autocompletion on direction or justifyContent props.
Expected behavior 🤔
All my props should be well typed and should show suggestions just like other MUI components.
Context 🔦
No response
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: