Switch
A native checkbox input, styled as a switch with pure CSS.
Props
Prop | Type | Default |
---|---|---|
color | base | brand | - |
size | sm | md | lg | - |
trueLabel | string | - |
falseLabel | string | - |
text | string | - |
html | string | - |
as | HTMLTag | span |
HTML Attributes | Polymorphic<as> | - |
Examples
size
The size prop cascades: it is inherited from the parent and it is applied to all children.