Skip to content

Settings

Settings rows

A stack of label, description and control rows — the body of a settings section, at two densities.
Available
Ports as-is

Examples

Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.

Settings rows

Rendered live from Storybook

Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.

Props

The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.

PropTypeDefaultDescription
rows*SettingsRowItem[]—Undocumented — add TSDoc to the prop in the library.
titleReact.ReactNode—Optional group heading rendered above the card (the notification panes group rows this way).
density"comfortable" | "compact""comfortable"Vertical row rhythm: `comfortable` = `px-4 py-3.5` (product/page settings), `compact` = `p-4` (notification lists).
classNamestring—Undocumented — add TSDoc to the prop in the library.
rowClassNamestring—Undocumented — add TSDoc to the prop in the library.
labelClassNamestring—Undocumented — add TSDoc to the prop in the library.
descriptionClassNamestring—Undocumented — add TSDoc to the prop in the library.

Reference

Transcribed from the component audit. If this disagrees with the source, the source is right.

Source
src/components/settings/SettingsRows.tsx
Portability
Copies across unchanged — only the utils import path moves.
Variants
density: comfortable | compact
States to cover
with descriptionlabel onlysectioned with a title
Notes
Exports SETTINGS_ROW_CONTROL_CLASS so a caller's control lines up with the rest of the column.