Toggle
Displays a boolean value.
Usage
First of all, you need to import the Toggle
component from the kitchn
package.
import { Toggle } from "kitchn"
Default
Disabled
Sizes
Props
Name | Type | Default | Required | Description | Accepted values |
---|---|---|---|---|---|
checked | boolean | - | - | The current state of the toggle (checked or not). | - |
disabled | boolean | - | - | The current status of the toggle (disabled or not). | - |
onChange | (e: React.ChangeEvent<HTMLInputElement>) => void | - | - | The change event handler. | - |
large | boolean | - | - | The size of the toggle (large or not). | - |