The icon to display when the component is checked.
Override or extend the styles applied to the component. See CSS API below for more details.
The color of the component. It supports those theme colors that make sense for this component.
If given, uses a negative margin to counteract the padding on one side (this is often helpful for aligning the left or right side of the icon with content above or below, without ruining the border size and shape).
The icon to display when the component is unchecked.
The id of the
Attributes applied to the
Pass a ref to the
The event source of the callback.
You can pull out the new checked state by accessing
The size of the switch.
The input component prop
The value of the component. The DOM API casts this to a string.