Switch
A settings row with a 22px pill switch, label and helper text, the whole row clickable.
Interactive preview · desktop · dark
Installation
Installation is available on the Startup and Business plans. Your personal install command appears here once you have access.
Usage
Import it, pass your props, and make it part of your product.
example.tsx
import { SwitchRow } from '@/components/component-kit/items/switch-row';
export function Example() { return ( <SwitchRow label="Email notifications" description="Get a summary when a deploy finishes." defaultChecked /> );}Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | ReactNode | — | Row label. |
description | ReactNode | — | Helper text under the label. |
checked | boolean | — | Controlled state; use with onCheckedChange. |