BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/better-auth-ui/account-settings

Account Settings

better-auth-ui/account-settings
FreeComponent

A container component that displays account settings including user profile, change email, and plugin-contributed account cards (e.g. appearance from the theme plugin, multi-session accounts).

Live preview

live · rendered by the registry
Rendered by better-auth-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://better-auth-ui.com/r/account-settings.json

Source

src/components/auth/settings/account/account-settings.tsxbetter-auth-ui.com/r/account-settings.json
1"use client"
2
3import { useAuth } from "@better-auth-ui/react"
4import type { ComponentProps } from "react"
5
6import { cn } from "@/lib/utils"
7import { ChangeEmail } from "./change-email"
8import { UserProfile } from "./user-profile"
9
10export type AccountSettingsProps = {
11 className?: string
12}
13
14/**
15 * Renders the account settings layout.
16 *
17 * Uses `emailAndPassword` and `plugins` from `useAuth()` to conditionally
18 * show sections:
19 * - `UserProfile` always renders.
20 * - The change-email card renders when `emailAndPassword?.enabled` is truthy
21 * or the `magicLink` plugin is registered, and a plugin may replace it via
22 * `cardOverrides.account.changeEmail` (the email-OTP plugin swaps in its
23 * code-based flow).
24 * - Plugin-contributed account cards are rendered via the plugins array
25 * (e.g. `Appearance` from the theme plugin, multi-session accounts).
26 */
27export function AccountSettings({
28 className,
29 ...props
30}: AccountSettingsProps & ComponentProps<"div">) {
31 const { emailAndPassword, plugins } = useAuth()
32
33 const hasMagicLink = plugins.some((plugin) => plugin.id === "magicLink")
34
35 const ChangeEmailOverride = plugins.find(
36 (plugin) => plugin.cardOverrides?.account?.changeEmail
37 )?.cardOverrides?.account?.changeEmail
38 const ChangeEmailCard = ChangeEmailOverride ?? ChangeEmail
39
40 // A plugin that replaces the card brings its own way to confirm the change,
41 // so it can stand on its own without password or magic-link auth.
42 const showChangeEmail =
43 emailAndPassword?.enabled || hasMagicLink || Boolean(ChangeEmailOverride)
44
45 return (
46 <div
47 className={cn("flex w-full flex-col gap-4 md:gap-6", className)}
48 {...props}
49 >
50 <UserProfile />
51 {showChangeEmail && <ChangeEmailCard />}
52 {plugins.flatMap(
53 (plugin) =>
54 plugin.accountCards?.map((Card, index) => (
55 <Card key={`${plugin.id}-${index.toString()}`} />
56 )) ?? []
57 )}
58 </div>
59 )
60}

What it pulls in

npm packages

  • @better-auth-ui/react@latest
  • @better-auth-ui/core@latest

Other registry items

  • https://better-auth-ui.com/r/radix-nova/user-profile.json
  • https://better-auth-ui.com/r/radix-nova/change-email.json

Files it writes

  • src/components/auth/settings/account/account-settings.tsx

Facts

Registry
better-auth-ui
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

Docs on better-auth-ui better-auth-ui.com better-auth-ui/better-auth-ui on GitHub Raw registry item This item as JSON

More from better-auth-ui

All 49 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Active Sessionsactive-sessionsbetter-auth-uiComponentsFree5 deps · 2 files
Additional Fieldadditional-fieldbetter-auth-uiComponentsFree5 deps
Adminadminbetter-auth-uiComponentsFree4 deps · 3 files
Anonymousanonymousbetter-auth-uiComponentsFree4 deps · 3 files
API Keyapi-keybetter-auth-uiComponentsFree4 deps · 10 files
Authauthbetter-auth-uiComponentsFree2 deps
Auth Providerauth-providerbetter-auth-uiComponentsFree4 deps · 2 files
Auth Redirectauth-redirectbetter-auth-uiComponentsFree3 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex