typewind
typewind copied to clipboard
Feature Request: Support Data Attributes
Tailwind v3 supports data attributes, e.g.
<div data-size="large" class="data-[size=large]:p-8">
<!-- ... -->
</div>
These are useful for libraries like Radix UI that uses data attributes for state-based styling.
Perhaps a syntax like tw.data("size=large", tw.p_8)
would work.
For Radix UI, I found that https://github.com/ecklf/tailwindcss-radix works perfectly with Typewind.