Skip to content

v1.0.0-beta.9

Pre-release
Pre-release

Choose a tag to compare

@joe-bell joe-bell released this 06 Sep 13:00
0481ada

What's changed

Bring your own concatenator 🫛

The new cva/config entry point supports cn, tailwind-merge, clsx/lite, or your own concatenator, opening up more control over how classes are combined.

Warning

Custom concatenator support is very experimental. The API and behavior may change without warning as the feature evolves.

See merging classes for setup examples, or advanced concatenators for clsx/lite.

Upgrading

  • TypeScript 6 or later is now required.
  • defineConfig moves to cva/config; getSchema moves to cva/utils. The old imports still work but are deprecated.
  • Configuration hooks are deprecated in favor of the new cx option.

See the migration notes.

By @joe-bell in #387.

Full changelog: v1.0.0-beta.8 → v1.0.0-beta.9