Overwiew
Here’s the basic structure of a MistCSS component. See below for details.
MistCSS will look for [data-*]
and --variables
. However, it makes no assumption how you use them as selectors.
For example, this is valid:
Tag and component name
To define the tag and name of your component, use @scope (<tag>.<component-name>)
Enum props
To add enum props to your component, use data-<prop-name>=<value>
Boolean props
To add boolean props to your component, use data-<prop>
Variable props
To add variable props, use --<prop-name>: <default-value>