animation | No | undefined | | Switch has built-in animations. Do not specify
an animation. |
bigger | No | boolean | | Set true to make the control a little bit larger. For more control,
use `font-size` in CSS on `.pretty`. |
color | No | "primary" | "success" | "info" | "warning" | "danger" | | Choose a color. Note: solid colors only for switch. |
hasFocus | No | boolean | | Set true to enable focus styling. |
locked | No | boolean | | Set true to enable locked mode. |
plain | No | boolean | | Set `true` to enable plain styles when to checkbox or radio is selected. |
setState | No | Dispatch<SetStateAction<string | boolean | any[]>> | | The state dispatch function either from the `setState` hook or a reference
to `this.setState`. |
shape | No | "fill" | "slim" | | The shape of the Switch. |
state | No | string | boolean | any[] | | The state of the control. Typically a boolean, string, or string array. |
type | No | "checkbox" | "radio" | | Override the kind of switch. Defaults to checkbox. |
variant | No | string | | |