-
Notifications
You must be signed in to change notification settings - Fork 140
Export types for component props #2724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It was a discussion we made as you can get the typing by using this : Also, because the user can use whichever styling library they want, if they don't want to use our default styling library and the typing will also change. Hence we took this decision. |
Closing this issue. |
@akash3gtm I'm trying to accomplish something like the following, but having to do a bunch of VariantType / as conversions
That's somewhat unwieldy having to do the variant props casting to get around type checks. Is there more idiomatic way to handle this with your library? |
Ohhh, You want to create a wrapper and only export the typings and props for variants and all the other props are already given. |
Please create a discussion and write your use-case with your needs there. |
Description
Would be great if you could export types for component props in addition to the components so they can be re-used in wrapper components.
Problem Statement
Want to create wrapper components that leverage the types for component props in the generated components in components/ui.
Proposed Solution or API
Export the types for props of any exported components from generated code.
Example change for generated
heading/index.ts
line 220Alternatives
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: