styled JSX component type #1387
Unanswered
HasanHaghniya
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I think you're looking for |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
this is how i defined my input , when i export the component with styled and my editor says the type of Input is:
StyledComponent<React.ForwardRefExoticComponent< StyledComponent<React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>, {}>& React.RefAttributes<HTMLInputElement>>, {}>
, I expect when i using this component in WebStorm it load me InputProps and Styles props like "padding", "paddingY" , "margin" .... in auto complete but it says no suggestion , even my own InputProps, but when i export BaseInput the autocomplete shows me InputProps
I had no problem with stitches when i wrote the styles like this
and the auto suggestion in webstorm load me my own props + stitches styles props , how can we achieve this in Panda?
Beta Was this translation helpful? Give feedback.
All reactions