Delete User
better-auth-ui/delete-userFreeComponent
Delete-user plugin: danger zone with DeleteAccount card and confirmation dialog. Registers a DangerZone security card in account settings when the plugin is registered.
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/delete-user.jsonSource
1"use client"23import { useAuth } from "@better-auth-ui/react"4import type { ComponentProps } from "react"56import { cn } from "@/lib/utils"7import { DeleteAccount } from "./delete-account"89export type DangerZoneProps = {10 className?: string11}1213/**14 * Renders the danger zone heading and {@link DeleteAccount}.15 * Registered as a `securityCard` by `deleteUserPlugin()`; gate by registering the plugin.16 */17export function DangerZone({18 className,19 ...props20}: DangerZoneProps & Omit<ComponentProps<"div">, "children" | "className">) {21 const { localization } = useAuth()2223 return (24 <div className={cn("flex w-full flex-col", className)} {...props}>25 <h2 className="text-sm font-semibold mb-3 text-destructive">26 {localization.settings.dangerZone}27 </h2>2829 <DeleteAccount />30 </div>31 )32}
What it pulls in
npm packages
Other registry items
Files it writes
More from better-auth-ui
All 49 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Account Settingsaccount-settings | better-auth-ui | Components | Free | 2 deps | |
| Active Sessionsactive-sessions | better-auth-ui | Components | Free | 5 deps · 2 files | |
| Additional Fieldadditional-field | better-auth-ui | Components | Free | 5 deps | |
| Adminadmin | better-auth-ui | Components | Free | 4 deps · 3 files | |
| Anonymousanonymous | better-auth-ui | Components | Free | 4 deps · 3 files | |
| API Keyapi-key | better-auth-ui | Components | Free | 4 deps · 10 files | |
| Authauth | better-auth-ui | Components | Free | 2 deps | |
| Auth Providerauth-provider | better-auth-ui | Components | Free | 4 deps · 2 files |
