Switch
Useful for allowing users to toggle boolean options in a form.
Props
Prop | Type | Description |
---|---|---|
appearance | default | minimal | negative | positive | The theming to apply |
id | String | The id of the switch |
name | String | The name of the switch |
value | String | The value of the switch |
leftText | String | The left text of the switch |
rightText | String | The right text of the switch |
colorText | default | muted | primary | The color text to apply |
isChecked | Boolean | Whether it is checked or not |
onChange | Function | A function to be called when the value changes |
Examples
todo