Switch
Toggle control for switching between on and off states
Example
Loading preview…
Switch
Toggle control for switching between on and off states
Source: packages/appkit-ui/src/react/ui/switch.tsx
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
checked | boolean | - | - | |
defaultChecked | boolean | - | - | |
required | boolean | - | - | |
onCheckedChange | ((checked: boolean) => void) | - | - | |
asChild | boolean | - | - |
Usage
import { Switch } from '@databricks/appkit-ui';
<Switch /* props */ />