registerVariant
Overview
Registers a new variant for a component with the given name.
Signature
registerVariant(componentName, variantName, variantConfig)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| componentName | string | yes | The name of a registered component. |
| variantName | string | yes | The name of the variant. |
| variantConfig | VariantConfig | yes | CSS classes keyed by spot name. Each spot must be one the component declares. |
Returns
void
Throws
- If the variant configuration is invalid.
Source
client/lib/stores/storeTheme.js:110