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

Usage

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

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

API reference

PropTypeDefaultDescription
title / descriptionstringThe group's heading and a line under it.
rows{ id, label, description?, checked?, onCheckedChange?, control? }[]requiredOne row per setting; pass control for anything but a switch.

View the source on GitHub