Auth Account Delete
hextaui/auth-account-deleteFreeComponent
Delete account with password confirmation and data loss acknowledgment.
Install it
npx shadcn@latest add https://hextaui.com/r/auth-account-delete.jsonSource
1"use client";23import { AlertTriangle, Loader2, Trash2 } from "lucide-react";4import { useCallback, useState } from "react";5import { cn } from "@/lib/utils";6import {7 AlertDialog,8 AlertDialogAction,9 AlertDialogCancel,10 AlertDialogContent,11 AlertDialogDescription,12 AlertDialogFooter,13 AlertDialogHeader,14 AlertDialogTitle,15 AlertDialogTrigger,16} from "@/registry/new-york/ui/alert-dialog";17import { Button } from "@/registry/new-york/ui/button";18import {19 Card,20 CardContent,21 CardDescription,22 CardHeader,23 CardTitle,24} from "@/registry/new-york/ui/card";25import { Checkbox } from "@/registry/new-york/ui/checkbox";26import {27 Field,28 FieldContent,29 FieldError,30 FieldLabel,31} from "@/registry/new-york/ui/field";32import {33 InputGroup,34 InputGroupInput,35} from "@/registry/new-york/ui/input-group";36import { Label } from "../../ui/label";3738export interface AuthAccountDeleteProps {39 onDelete?: (data: { confirmText: string }) => void;40 className?: string;41 isLoading?: boolean;42 errors?: {43 confirmText?: string;44 general?: string;45 };46 confirmText?: string;47 dataSummary?: {48 projects?: number;49 files?: number;50 storage?: string;51 };52}5354interface WarningBannerProps {55 className?: string;56}5758function WarningBanner({ className }: WarningBannerProps) {59 return (60 <div61 className={cn(62 "flex items-start gap-3 rounded-lg border border-destructive/50 bg-destructive/5 p-4",63 className64 )}65 >66 <AlertTriangle67 aria-hidden="true"68 className="size-5 shrink-0 text-destructive"69 />70 <div className="flex flex-1 flex-col gap-2">71 <p className="font-medium text-destructive text-sm">72 This action cannot be undone73 </p>74 <p className="text-muted-foreground text-xs">75 This will permanently delete your account and remove all of your data76 from our servers. This action is irreversible.77 </p>78 </div>79 </div>80 );81}8283interface DataSummaryProps {84 dataSummary: {85 projects?: number;86 files?: number;87 storage?: string;88 };89}9091function DataSummary({ dataSummary }: DataSummaryProps) {92 return (93 <div className="flex flex-col gap-2 rounded-lg border bg-muted/50 p-4">94 <h3 className="font-medium text-sm">Data that will be deleted:</h3>95 <ul className="flex flex-col gap-1 text-muted-foreground text-xs">96 {dataSummary.projects !== undefined && (97 <li>98 •{" "}99// … truncated
What it pulls in
Other registry items
Files it writes
More from HextaUI
All 139 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | HextaUI | Components | Free | 1 dep | |
| AI Chat Historyai-chat-history | HextaUI | Components | Free | no deps | |
| AI Citationsai-citations | HextaUI | Components | Free | no deps | |
| AI Conversationai-conversation | HextaUI | Components | Free | no deps | |
| AI Error Handlerai-error-handler | HextaUI | Components | Free | no deps | |
| AI File Uploadai-file-upload | HextaUI | Components | Free | no deps | |
| AI Messageai-message | HextaUI | Components | Free | 4 deps | |
| AI Model Selectorai-model-selector | HextaUI | Components | Free | no deps |
