Settings page
Components: Page, PageHeader, PageHeaderGroup, PageContent, PageTitle, RemoteShellBreadcrumb, Heading, Text
+23 more
Field, FieldLabel, FieldError, Input, Select, SelectInput, SegmentedControl, RadioGroup, Radio, Switch, Button, Avatar, FileUpload, Separator, Tooltip, Toast, Dialog, PasswordInput, PasswordComplexity, ThemeProvider, ImageCropper, Slider, NavRail
A 640px column of sections. Each row saves itself and a toast confirms it. No Save button.
When to use
Pick the row kind by the control:
Rules
Layout and spacing (spacing counts in pixels, gap-16 = 16px):
- Use
Page fullSize fixedHeight›PageHeader›PageContent. Never addPageActions,PageToolbarorPageDescription. PageHeader›PageHeaderGroup›PageTitle. The trail is the Settings section'sRemoteShellBreadcrumb(Application layout); never putBreadcrumbsinPageHeader.PageContentowns the 24px gutter. Never add padding around it.- Put the sections in one
div className='flex max-w-[640px] flex-col gap-16'. Never wrap it in aCardor padded box. Never give itmx-auto; it stays left-aligned. - Section:
flex flex-col gap-16›Heading as='h2' size='xl' weight='medium' color='primary'+ aflex flex-colrow list. - Put
Separator spacing={16}after every row, including a section's last row, except in the last section. - Never add
gap-*to the row list. The separators carry the rhythm. - Wrap
InputandSelectinw-[320px] shrink-0. Leave compact controls unwrapped. - Give action rows
flex min-h-36 items-center justify-between gap-16. Use the defaultButtonsize (36px). - Put card radios in
div className='grid grid-cols-3 gap-8'inside theRadioGroup. - Never pass
classNametoField,FieldLabel,Heading,Text,RadioGrouporRadio. Size them through a wrapperdiv.
Controls:
- Save text on blur and choices on change. Never save per keystroke or an unchanged value.
- Use
SelectInputas the trigger. Over ~10 options, addSelectHeader›SelectSearchInputwithuseSelectSearch. - Use
SegmentedControlfor 2–4 short options. ItsonChangegets(value: string). - Use
RadioGroup variant='card'only when options carry a picture or description (theme). - Use
Button variant='outline' color='neutral'for a row action that opens a dialog ("Change password"). - Make the avatar the upload trigger:
FileUploadTrigger asChild›Avatar as='button'withAvatarOverlay. - If a value needs confirming (email, password), open a 560
Dialogthat asks for the current password. Never edit it in the row. - If two values only make sense together, put them in one dialog. Never autosave half a pair.
- Put the danger zone last: text (
max-w-[320px]) left,Button color='destructive'right.
Copy:
- Page title = rail item ("Profile"); breadcrumbs "Settings › Profile". Section titles are one noun ("Preferences"). Labels are sentence case, no colon.
- Write the toast as "<Label> updated" with
type: 'success', one per saved value. This overrides'default'from Feedback toasts.
There is no SettingsPage, SettingsSection or SettingsRow, no className on Field, no label on Separator, no loading on Switch or Input, no 'system' theme value, and no theme preview tile.
Examples
The page frame: a title in the header, sections straight in PageContent.
Settings › Profile: About, Preferences, Appearance, Security and the danger zone in one left-aligned 640px column. Text saves on blur, choices on change, and every save shows a "<Label> updated" toast. Email and password open dialogs; two-factor is locked by the org.
A field row saves on blur and shows an inline error; a failed save keeps the typed value.
Starts invalid: the message sits under the input inside the 320px wrapper, and nothing saves until the name is valid. A failed save shows an error toast instead of "Name updated".
An action row labels with Text and aria-label, not FieldLabel.
The control saves on change; the row keeps its 36px height whatever the control is.
An org-locked value puts the tooltip on Lock; a disabled Switch never opens one.
The row stays visible with its current value, so users see what the org enforces.
A read-only email opens its dialog on click or Enter.
The dialog asks for the current password before it changes the email.
States
Pass error to Input; Field invalid alone does not mark it.
While a value saves, only its own control changes.
Saving: a select and a switch stay disabled until the request ends, and a button action shows its loading state. The rest of the page stays usable.