For AI agents: the complete documentation index is available at https://wallarm.github.io/design-system/llms.txt, the full documentation bundle is available at https://wallarm.github.io/design-system/llms-full.txt, and this page is available as Markdown at https://wallarm.github.io/design-system/patterns/settings-page.md.

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

NeedUseNot
Independent values of one account or orgThis patternOne form with a Save button
Values saved together (a provider config)Create and edit forms in a DrawerRows that autosave
A list of entitiesResource list pageA row per entity
An events × channels matrixTable with Switch cells (Entity table)A row per cell
Email or password changeA Dialog opened from the rowEditing the value in place
Deleting the accountType-to-confirm Dialog (Confirmation dialogs)Deleting at once

Pick the row kind by the control:

ControlRow
Input, Select, SwitchField row: Field orientation='horizontal' › FieldLabel + a w-[320px] shrink-0 wrapper
SegmentedControlAction row with aria-label on the control
Button, AvatarAction row: Text + control
RadioGroup variant='card'No row; the section Heading labels it through aria-labelledby

Rules

Layout and spacing (spacing counts in pixels, gap-16 = 16px):

  • Use Page fullSize fixedHeight › PageHeader › PageContent. Never add PageActions, PageToolbar or PageDescription.
  • PageHeader › PageHeaderGroup › PageTitle. The trail is the Settings section's RemoteShellBreadcrumb (Application layout); never put Breadcrumbs in PageHeader.
  • PageContent owns 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 a Card or padded box. Never give it mx-auto; it stays left-aligned.
  • Section: flex flex-col gap-16 › Heading as='h2' size='xl' weight='medium' color='primary' + a flex flex-col row 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 Input and Select in w-[320px] shrink-0. Leave compact controls unwrapped.
  • Give action rows flex min-h-36 items-center justify-between gap-16. Use the default Button size (36px).
  • Put card radios in div className='grid grid-cols-3 gap-8' inside the RadioGroup.
  • Never pass className to Field, FieldLabel, Heading, Text, RadioGroup or Radio. Size them through a wrapper div.

Controls:

  • Save text on blur and choices on change. Never save per keystroke or an unchanged value.
  • Use SelectInput as the trigger. Over ~10 options, add SelectHeader › SelectSearchInput with useSelectSearch.
  • Use SegmentedControl for 2–4 short options. Its onChange gets (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' with AvatarOverlay.
  • If a value needs confirming (email, password), open a 560 Dialog that 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

StateShowExample component
SavedSuccess toast "<Label> updated"useToast().create({ type: 'success' })
Save failedError toast; keep the typed valueuseToast().create({ type: 'error' })
Invalid valueMessage inside the 320 wrapper; no save, no toastInput error + FieldError
Saving a selectDisabled until the request endsSelect disabled
Saving a button actionLoading button; never disable the pageButton loading
Saving a switchDisabled until the request endsSwitch disabled
Locked by the orgDisabled control + Lock tooltip; keep the rowTooltip › TooltipTrigger
Opens a dialogRead-only valueInput readOnly

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.

What your app owns

ConcernRecipe
Saving, validation, toastsCall your API, then useToast().create(...)
Email and password dialogsDialog from @wallarm-org/design-system/Dialog; PasswordInput with PasswordComplexity and passwordValidators for the new password. See Create and edit forms
Avatar cropDialog with ImageCropper and Slider; FileUpload only holds the file
"System" themeuseTheme().setTheme takes 'light' or 'dark'. Store 'system' yourself and resolve it with matchMedia('(prefers-color-scheme: dark)')
Theme previewsPass your own image in RadioDescription
Sidebar styleuseTheme().frameStyle / setFrameStyle('neutral' | 'branded')
Sidebar modeStore it yourself; pass mode ('expanded', 'collapsed', 'compact') to NavRail. "Adaptive" is your logic
Date and time formatsOption labels built from the current date
Org locksWhich values are locked
Delete accountType-to-confirm Dialog, then sign the user out