github joe-bell/cva v1.0.0-beta.9

pre-release3 hours ago

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

Don't miss a new cva release

NewReleases is sending notifications on new releases.