tailwind-variants
Use only if tailwind-variants is already installed or requested. Keep every emitted Tailwind class static and match
the installed package version.
- Use a normal
tvrecipe for one element andslotsfor multipart components; slot variants return per-slot classes. - Use
compoundVariantsorcompoundSlotsonly for state combinations that cannot be expressed by one variant axis. - Compose related recipes with
extendinstead of duplicating bases, slots, variants, or defaults. - Keep one-off configuration local.
createTVis for an intentionally shared configuration; mutatingdefaultConfigchanges every recipe in the process. Extend merge groups only for local custom tokens and preferextend/overrideover replacing configuration. - The lite entrypoint does not provide merge resolution. Do not select it when callers depend on conflict resolution.
Consult the API, slots, extending, and configuration for the installed version.