Settings screen
Settings that show what changed before you save: an ember mark and the previous value on each field, one bar that names the changes.
State
When to use
- Forms people edit occasionally and must get right.
- Changes affect everyone in a workspace.
When not to use
- Toggles that should apply at once; use switches that save immediately.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/settings-screen
Adds its 15 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
SettingsScreen
7 props
PropTypeDefaultDescription
titlestring"Settings"
descriptionstring—
sections *readonly { id: string; label: string; description?: string | undefined; }[]—A section with a description gets its own heading above its fields.
fields *readonly SettingsField[]—
onSave *(values: Record<string, string>) => void | Promise<void>—
danger{ title: string; consequence: string; label: string; onConfirm: () => void; }—
classNamestring—
Keyboard
- Keyboard and focus come from Radix popover: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.
Accessibility
It exposes status, img and region semantics, with aria-label, aria-current, aria-describedby and aria-live kept in step with state. Changes that matter are announced through a live region.
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-screen.mdThe index of every part is at /llms.txt.
More in Settings & security
Password resetForgot password and choose a new one: a cooldown on resend, wording that never reveals who has an account, and clear expired and saved states.Email verificationConfirm an address with a six-digit code that checks itself when complete, with resend and a way to fix a typo.MFA challengeThe second step of sign in: authenticator, text, passkey or recovery code, with a lockout that counts down after too many tries.