Types
All types are exported from thecva package and can be imported directly.
ClassValue
The union of all valid inputs accepted bycx and the base, variants, and compoundVariants fields of cva.
ClassDictionary
An object whose values determine whether each key (a class name) is included. Truthy values include the class; falsy values exclude it.ClassArray
A recursive array ofClassValue items. Useful for grouping related classes.
VariantProps
A utility type that extracts the variant prop types from a CVA component function. Theclass and className props are omitted from the result.
CX
The interface for thecx function.
CXOptions
The parameter type ofCX. Equivalent to ClassValue[].
CXReturn
The return type ofCX. Always string.
CVA
The interface for thecva function.
Compose
The interface for thecompose function.
DefineConfig
The interface for thedefineConfig function.
DefineConfigOptions
The options object accepted bydefineConfig.
