Settings Page
SettingsPage, SettingsSection and SettingsRow. Rows put the label and help on one side and your control on the other, and stack on a phone. Search narrows to the setting someone means, sections with nothing left hide, the list on the side follows the scroll, and the save bar waits for your save, shows its error and asks before anyone leaves with changes unsaved. A danger zone is one prop.
Ready for AI tools one file typed props installs by name prompt included
Installation
How you get it
Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.
Use Layro's Settings Page for this.
Install it: npx shadcn@latest add @layro/settings-page
Import it from @/components/ui/settings-page.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @layro registry with your CLI token: see the Namespaced tab.
API
“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.
Props
Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.
| Prop | Type | Notes |
|---|---|---|
title | React.ReactNode | — |
description | React.ReactNode | — |
sections | SettingsSectionLink[] | The sections, in order, for the list on the side. Ids match each SettingsSection. |
dirty | boolean | Something has changed since the last save: shows the save bar. |
onSave | () => void | Promise<void> | Save. May return a promise; throw to show why it failed. |
onDiscard | () => void | Put the changes back. |
guardUnsaved | boolean | Ask before leaving with unsaved changes. Default true. |
searchable | boolean | Show the search box. Default true. |
saveLabel | string | — |
Dependencies
npm packages
clsxframer-motionlucide-reacttailwind-mergeLayro foundations, installed alongside it
layro-themebuttonLifetime access
Every component, and everything we ship next.
- All 112 components, source included
- The template, and everything released after you buy
- shadcn CLI or download — React 18/19, Tailwind v4
- One payment. No subscription.
More in Workspace
All Workspace componentsMember Card
FreeOne person's standing in a workspace, as a row — and a menu derived from it.
Members Table
FreeSearch, filters, and a bulk bar that names its refusals before it runs.
Access Request Inbox
FreeApprove or deny with a reason, and an undo that releases what it superseded.
Roles & Permissions Matrix
PaidInherited permissions drawn differently from ones you granted directly.
Included with lifetime access
Access Review
PaidEvidence on every row, and a bulk action that refuses the dormant accounts.
Included with lifetime access
Seat Usage & Limits
PaidPending invites counted, and a meter that goes over instead of clamping.
Included with lifetime access