Forms & Inputs
Toggle
Toggle component is used to quickly switch between two possible states. These are only used for binary actions that occur immediately after the user turns the switch on/off.
V 1.0View in Storybook
Controls
Switch (on/off)
State
Size
Label
Variants
Props
Code
import { Toggle } from '@/src/components/Toggle/Toggle'
const [on, setOn] = useState(false)
<Toggle
size="md"
state="default"
checked={on}
onChange={setOn}
/>