Quick examples

Special props and values#

child#

Add any child CSS/pseudo definition.

Live Editor
Result

Pseudo selectors/states#

Pseudo definitions are also having shorthands, always starting with :.

Live Editor
Result

raw#

Use it to pass raw CSS string / Style object.

Live Editor
Result

Number values#

Properties awaiting numeric values with a unit can accept pure numbers for built-in automatic conversion.

If not a number is given, the value will be used as-is.

Example:

Live Editor
Result

Array values#

Shorthand properties awaiting numeric values with units can accept an array as an input.

Example:

Live Editor
Result
Last updated on by Pablo Henrique