Tailwind Intellisense CVA
I tried this... not working lol, no intellisense, using Vite & running with bun
Solution:Jump to solution
solved, regexes are dumb (regex makes it cut at the first
...
)
, just don't use )
in tailwind classes, variables don't need a var()
around them if you are on a newer version)
className='var(--example)'

4 Replies
I get intellisense in classNames

Swear this is dumb
CVA's guide don't work for this either
src/components/ui/button.tsx
yes intellisense ^
src/components/ui/toast.tsx
no intellisense
wtf
i fixed it dumb ass regexSolution
solved, regexes are dumb (regex makes it cut at the first
)
, just don't use )
in tailwind classes, variables don't need a var()
around them if you are on a newer version)
className='var(--example)'

className='--example'
✅