Components › Blocks
Settings section
A group of settings: a heading, then a row per setting with its label, help and switch.
Installation
npx plankui@latest add settings-sectionUsage
import { SettingsSection } from "@/components/ui/settings-section";
<SettingsSection title="Email notifications" rows={[{ id: "digest", label: "Weekly digest", checked, onCheckedChange: setChecked }]} />API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| title / description | string | The group's heading and a line under it. | |
| rows | { id, label, description?, checked?, onCheckedChange?, control? }[] | required | One row per setting; pass control for anything but a switch. |