Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>clsxNew to Visual Studio Code? Get it now.
clsx

clsx

ElegantStack

|
642 installs
| (1) | Free
Convert ClassName prop from string to clsx. Also adds the import if needed
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

clsx

This is a VS Code plugin forked from ClassNameify that converts string class names to use the clsx library

To use it, simply right click a className prop on a react or preact component and click Convert to clsx in the context menu

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft