lukeed / clsx

A tiny (239B) utility for constructing `className` strings conditionally.
MIT License
8.08k stars 141 forks source link

Add documentation on usage with Tailwind CSS #64

Closed edgarlr closed 1 year ago

edgarlr commented 1 year ago

I've been a user of this library for a long time and took me some time to figure out how to enable Tailwind IntelliSense inside clsx functions. I think could be helpful to add documentation on how to enable it to the README.

I'll open a PR

razzeee commented 1 year ago

Tried to look into this due to the new version and it seems to already work without the tailwind specific setup for me? Is this only for some specific ones?

Tested on https://github.com/flathub/website

dcantatore commented 1 year ago

What about with JetBrains (webstorm)?