Skip to content
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

Extend typescript and usage of Classname creator #17

Open
enyelsequeira opened this issue Nov 30, 2022 · 0 comments
Open

Extend typescript and usage of Classname creator #17

enyelsequeira opened this issue Nov 30, 2022 · 0 comments

Comments

@enyelsequeira
Copy link
Contributor

Hello,

I have been testing a few libraries out to see which one is the more robust, or the most stable in order to create different variants, I have used CVA, and I liked it, however it is missing some of the functionality that you have in this library, like the fact that you can create record function variants, which I think are extremely powerful for some edge cases, the thing, that I think might be cool to add to it would be the correct typing and allowing the user to create a function like className if they are using the ClassName creator

so ideally it would be nice, to have something like this api
image

I think this would be a really good enhancement for the library, at the moment if I were to try something similar it does not work, with TS

Thoughts 🤔 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant