# Settings Page (Pro)

> Account and workspace settings one section at a time, with API keys, sessions, billing, a guarded danger zone and a save bar that rises when anything changes.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Blocks › App Screens |
| Live preview | https://uibrik.com/components/settings-page |
| Writes | 1 files into `components/uibrik/settings-page/`, plus `components/uibrik/_app/app-kit.tsx` |
| Packages | `@tabler/icons-react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 22, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/settings-page
```

No license yet? Tell the user Settings Page is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=settings-page#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { SettingsPage } from "@/components/uibrik/settings-page/settings-page";

<SettingsPage
  defaultSection="profile"
  workspaceName="acme"
  onSectionChange={(section) => {}}
  onSave={(values) => {}}
  onCreateKey={(name, scope) => {}}
  onRevokeKey={(id) => {}}
  onSignOutSession={(id) => {}}
  onChangePassword={(current, next) => {}}
  onDeleteWorkspace={() => {}}
  // section={…}
  // defaultValues={…}
  // apiKeys={[…]}
  // sessions={[…]}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/settings-page.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `defaultSection` | `"profile" \| "security" \| "notifications" \| "appearance" \| "api-keys" \| "billing" \| "danger"` | `"profile"` | Section shown first when uncontrolled. |
| `workspaceName` | `string` | `"acme"` | Typed to confirm deleting the workspace. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `section` | `SettingsSection` |  | Controlled section. Pair with onSectionChange. |
| `onSectionChange` | `(section: SettingsSection) => void` |  | Called when the nav switches sections. |
| `defaultValues` | `Partial<SettingsValues>` |  | Saved profile, notification and theme values. Discard returns to these. |
| `apiKeys` | `ApiKey[]` |  | Existing keys: { id, name, last4, scope?, createdMinutesAgo, lastUsedMinutesAgo? }. |
| `sessions` | `Session[]` |  | Signed-in devices: { id, device, location, mobile?, activeMinutesAgo, current? }. |
| `onSave` | `(values: SettingsValues) => void \| Promise<void>` |  | Persists the draft. The bar shows saving until the promise settles. |
| `onCreateKey` | `(name: string, scope: "full" \| "read") => string \| Promise<string>` |  | Creates a key and returns its full secret, shown once. |
| `onRevokeKey` | `(id: string) => void` |  | Called after a revoke is confirmed. |
| `onSignOutSession` | `(id: string) => void` |  | Called when a session is signed out. |
| `onChangePassword` | `(current: string, next: string) => void \| Promise<void>` |  | Called with a valid password change. |
| `onDeleteWorkspace` | `() => void` |  | Called once the workspace name is typed and delete is confirmed. |
| `className` | `string` |  | Classes for the root. |

## Where it fits

- **SaaS account settings**: Sections one at a time with a save bar that rises on change make settings easy to manage.
- **API keys and billing**: API keys, sessions and billing come ready in one screen. Pairs with [Permissions Matrix](https://uibrik.com/components/permissions-matrix.md) (Pro).
- **Danger zones**: A guarded danger zone keeps destructive actions separate and deliberate. Pairs with [Hold to Confirm](https://uibrik.com/components/hold-to-confirm.md).

## Same shelf: App Screens

- [Setup Checklist](https://uibrik.com/components/setup-checklist.md): An onboarding checklist beside a segmented ring: finishing a task draws its check, folds the row away and flies a dot into the ring, and the last one closes the ring into a done state.
- [Email Composer](https://uibrik.com/components/email-composer.md): An email composer with recipient chips and suggestions, contact cards on hover, drag-and-drop attachments with upload progress, and a send button that schedules.
- [Org Chart](https://uibrik.com/components/org-chart.md): A pan-and-zoom org chart whose teams grow out of and fold back into their manager, with search that flies to a person, a minimap and profile cards.
- [Spreadsheet Grid](https://uibrik.com/components/spreadsheet-grid.md) (Pro): A spreadsheet with live formulas, a formula bar that colours each reference, a fill handle that continues series and shifts formulas, frozen panes, and columns that resize and drag to new places.
- [Trip Itinerary](https://uibrik.com/components/trip-itinerary.md) (Pro): A trip planner by day whose times work themselves out: add, edit, delete or drag a stop, delay a flight or lengthen lunch, and every later time rolls to its new value.
- [Activity Log](https://uibrik.com/components/activity-log.md) (Pro): An audit log grouped by day, with live search and filters by person and event type.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/settings-page/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
