ecklf / tailwindcss-radix

Utilities and variants for styling Radix state
https://tailwindcss-radix.vercel.app
MIT License
2.11k stars 67 forks source link

How to use with ESM and variantPrefix? #48

Closed arkmech closed 7 months ago

arkmech commented 10 months ago

import tailwindRadix from 'tailwindcss-radix';

tailwind.config.ts

  plugins: [
    tailwindRadix,
  ],

I am not sure how to specify variantPrefix with esm import.

arkmech commented 10 months ago

This works:

    tailwindRadix({ variantPrefix: 'rdx' }),

but....I get: this TS issue: This expression is not callable. Type '{ handler: (helpers: Helpers) => void; }' has no call signatures.

ecklf commented 7 months ago

Should be fixed in 2.9.0