Build a custom styled component library #5640
Unanswered
cpatti97100
asked this question in
Q&A
Replies: 1 comment 5 replies
-
That looks like the right way to go. You may also want to check out the Starter kit. |
Beta Was this translation helpful? Give feedback.
5 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.
-
Hello,
I am currently working on building a custom component library and I would like to validate my approach. I am using React and have started by creating a custom Button component that wraps a base button from react-aria-components. Here is the code for my Button component (do not mind TS, that is WIP):
My plan is to follow this pattern for other components as well, wrapping base components from react-aria-components and adding my own styles and additional props as needed.
Is this a good approach for building a custom component library? Are there any potential issues or improvements you would suggest?
Thank you for your help and the awesome work you did here :)
Beta Was this translation helpful? Give feedback.
All reactions