CSS-in-JS & Macro Support #410
jeremyswann
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Hey! Thank you for your suggestion! I don't think this is a good idea from a library perspective. There are new tools every day, and I don't think it makes sense to provide API's in Headless UI for every new tool that exists. Instead using a low-level API like we now have with We discussed this before and I think the better approach is to use the tools that already exists, checkout this thread: #80 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Firstly loving this package guys, nice and minimal.
It would be nice to be able to replace the default rendered
className: string
as a macro supported string like twin.macro using thetw: string
prop. Otherwise, I have to generate a css file just to support the class transitions, not the worst thing ever but I think there is enough of a use case for a feature here. This could also potentially support CSS-in-JS for packages like Emotion's css prop?maybe called
macro: string
then in use; could be "tw" or "css" the resulting div generated would rendertw="transition duration-100 ease-out"
instead ofclassName="transition duration-100 ease-out"
:Beta Was this translation helpful? Give feedback.
All reactions