# Settings section

A group of settings: a heading, then a row per setting with its label, help and switch. PlankUI component for React 19 and Tailwind CSS v4. Category: Blocks.

## Install

```bash
npx plankui@latest add settings-section
```

## Usage

```tsx
import { SettingsSection } from "@/components/ui/settings-section";

<SettingsSection title="Email notifications" rows={[{ id: "digest", label: "Weekly digest", checked, onCheckedChange: setChecked }]} />
```

## Props

| 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. |

Source: https://github.com/VectorLabsHQ/plankui/blob/main/components/ui/settings-section.tsx
