ui-kit0.0

Blocks

Settings

Account and preference pages.

What each section shows

  • Account: avatar with upload and remove, name, display name, a read-only verified email, a bio with a character count and a time zone. Save validates the name.
  • Notifications: email switches with descriptions (one locked on for paid plans) and a radio group for push notifications.
  • Billing: the current plan with renewal date, seat and storage meters that turn amber at 80%, the payment card and an invoice table.
  • Danger zone: transfer, export and delete. Delete opens an alert dialog that only enables the button once the workspace name is typed exactly, then shows a restorable warning.

When to use

  • Account or workspace settings with three to eight sections that each fit on one screen.
  • Not for: dozens of sections (use a sidebar with grouped links and real routes), or a single short form (use a page or a sheet).

Behaviour

  • Each section saves on its own; the save bar shows a spinner on the button, then a “Saved” status that clears on the next edit.
  • Destructive actions live together at the end, in a bordered group tinted with the destructive colour, and always need confirmation.
  • In an app, give each section its own route (for example /settings/billing) and drive Tabs with value / onValueChange so the URL and the tab agree.

Accessibility

  • Tabs follow the WAI-ARIA tabs pattern with aria-orientation matching the layout.
  • Each panel has one h2; groups inside use h3 and are labelled sections.
  • Switches carry their label and description; the locked switch is disabled and explains why in its description.
  • The delete confirmation is role="alertdialog" and cannot be dismissed while the request runs.