Skip to content
fabrials/ ui

Interaction

Confirmation

Give an action a clear review point before it runs.

0 confirmed

Installation

Terminal
bunx shadcn@latest add https://ui.fabrials.com/r/confirmation-dialog.json

API

Prop / exportTypeDescription
openbooleanControlled visibility.
onOpenChange(open) => voidVisibility updates.
title / descriptionstringDescribe the concrete action and its consequences.
onConfirm() => Promise<unknown>Runs only after confirmation.

Behavior & compatibility

Focus trapping and dismissal come from Base UI. Pending actions cannot be dismissed accidentally.

Accessibility

Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is fully keyboard operable.