Switch API
Learn about the Switch component's props and CSS classes.Import
import { SwitchProps } from "@prismane/core";
Props
Switch
extends Flex , Transition and PrismaneFieldComponent component's props.
CSS
Switch
extends Flex , Transition components' CSS classes.
Rule | Global Class | Description |
---|---|---|
root | .PrismaneSwitch-root | The container of the radio component. |
thumb | .PrismaneSwitch-thumb | The thumb container of the radio component. |
label | .PrismaneSwitch-label | The container of the field label component. |
error | .PrismaneSwitch-error | The container of the field error component. |