Skip to content
caliper ui pro docs

Settings layout

A settings page with side navigation, sections and a save bar.

Pro

Profile

Changes apply to your account only.

A digest of what changed in your workspace.

When to use

  • Many grouped preferences with unsaved changes.

When not to use

  • A single toggle.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/settings-layout

Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

SettingsLayout

9 props
PropTypeDefaultDescription
items *readonly SettingsNavItem[]—
active *string—
onActiveChange *(id: string) => void—
dirtynumber0How many unsaved changes there are.
onSave(() => void)—
onDiscard(() => void)—
savingboolean—
children *ReactNode—
classNamestring—

SettingsSection

4 props
PropTypeDefault
title *string—
descriptionstring—
children *ReactNode—
classNamestring—

SettingsRow

5 props
PropTypeDefault
label *string—
descriptionReactNode—
htmlForstring—
children *ReactNode—
classNamestring—

Keyboard

↓
Moves to the next item or value.
→
Moves to the next item or value.
↑
Moves to the previous item or value.
←
Moves to the previous item or value.

Accessibility

It exposes tablist, tab, tabpanel and region semantics, with aria-label, aria-orientation, aria-selected, aria-controls, aria-labelledby and aria-hidden kept in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/settings-layout.md

The index of every part is at /llms.txt.

More in Settings & security