lukeed / clsx

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

docs: Add guide to enable autocomplete for JetBrains IDEs #72

Open filippofilip95 opened 1 year ago

filippofilip95 commented 1 year ago

Hi there!

I've added the guide on how to enable autocomplete for the JetBrains IDEs such as Webstorm. It might be helpful for the users of the JetBrains ecosystem.

I already have it configured this way.

Screenshot 2023-04-25 at 11 58 18 Screenshot 2023-04-25 at 11 59 51

Strajk commented 10 months ago

Btw Tailwind with clsx works for me with no extra config, or am I missing sth?

Screen 2023-11-02 at 13 15 21

Screen 2023-11-02 at 13 16 40

filippofilip95 commented 10 months ago

@Strajk It's working when it's used for the className prop.

However, If u want to define class names separately to a constant, suggestions are not working.

Here's an example.

Screenshot 2023-11-03 at 07 58 15 Screenshot 2023-11-03 at 07 57 52