Account settingsPro
Profile with inline edits, security toggles, active sessions and guarded delete.
What's inside
- Inline edits with validation
- 2FA and alerts
- Sign out sessions
- Type-to-confirm delete
When to use
- The account page of a SaaS app.
When not to use
- Team or billing settings: use their own blocks.
Installation
Usage
Import it from @/components/blocks/settings-account after installing. It ships with sample data, so it renders straight away; swap in your own data when you're ready.
import { SettingsAccount } from "@/components/blocks/settings-account";
export default function Page() {
return (
<main className="mx-auto max-w-6xl p-6">
<SettingsAccount />
</main>
);
}API reference
SettingsAccount
Account settings: profile fields with inline editing and validation, avatar, security toggles, active sessions and a type-to-confirm delete. Also the default export. No props: sample data sits at the top of the file, ready to swap for your own.
No props.
Keyboard interactions
| Keys | Action |
|---|---|
| Enter | Edit or save a field |
| Esc | Cancel editing |
| Tab | Move through settings |
Accessibility
- Inline edits name their field; switches are labelled; sign-out buttons name the device.
- Delete requires typing the username.
Motion
- Edits cross-fade with a saved check; signed-out sessions collapse; the dialog scales in.
Responsive behavior
- Rows stack label above control on phones.
Performance
- Sample data is plain arrays at the top of the file. Replace them with your API data and keep the shapes.
Notes for AI
- Throw from onSave with your API's message, e.g. "That username is taken".
This page as Markdown, for assistants and coding agents:
/blocks/settings-account/markdownThe full library index for assistants is at /llms.txt.
Lode222 doc pagesllms.txt