Skip to main content

Switch

Toggle control for switching between on and off states

Example

switch
Loading preview…

Switch

Toggle control for switching between on and off states

Source: packages/appkit-ui/src/react/ui/switch.tsx

Props

PropTypeRequiredDefaultDescription
checkedboolean--
defaultCheckedboolean--
requiredboolean--
onCheckedChange((checked: boolean) => void)--
asChildboolean--

Usage

import { Switch } from '@databricks/appkit-ui';

<Switch /* props */ />