App, danger zone
- from @klarhimmel
Irreversible actions kept apart from the rest of the settings. Each row explains the consequence; its button opens a confirmation where the person types a phrase before the destructive button is enabled. A host acts through onConfirm(index) (a promise: the button holds, then the done text, or the error text with the confirmation left open).
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @klarhimmel/app-settings-danger