Atelier UI

Search components…

Search components…

Confirm Popover

A small anchored confirmation popover with destructive tone, safe default focus and async confirm.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

ConfirmPopoverProps

Also accepts all props of Omit<React.ComponentProps<"div">, "children" | "title">

PropTypeDefaultDescription
children* requiredReact.ReactElement<React.HTMLAttributes<HTMLElement>>—The element that opens the popover. Any single element, usually a button.
title* requiredReact.ReactNode——
descriptionReact.ReactNode——
confirmLabelstring"Confirm"—
cancelLabelstring"Cancel"—
tone"destructive" | "default""destructive"—

Install

$ npx shadcn@latest add https://chromotion.dev/r/confirm-popover.json

More like this