--- title: Toggle sidebar_position: 10 sidebar_custom_props: icon: TbToggleRight --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import { SandpackEditor} from '@site/src/ui/SandpackEditor' import toggleCode from '!!raw-loader!@site/src/ui/input/components/toggleCode.js'
Props Type Description Default
value boolean The current state of the toggle `false`
onChange function Callback function triggered when the toggle state changes
color string Color of the toggle when it's in the "on" state. If not provided, it uses the theme's blue color
toggleSize string Size of the toggle, affecting both height and weight. Has two options: `small` and `medium` medium