Methods
(static) variantAuthority(class, variants, defaultVariants) → {function}
Creates a resolver tailwind classes for a component with a given set of variances.
Parameters:
Name | Type | Description |
---|---|---|
class |
string | the default classes that are always added |
variants |
object | dictionary of variants and their related classes |
defaultVariants |
object | dictionary with names of the defaults for the variant categories |
- Source:
Returns:
the mapper of properties to the final classes
- Type
- function