Atelier UI

搜索组件…

搜索组件…

Confirm Popover

包裹任意触发器的小型确认气泡,支持危险样式与异步确认。

在沙盒中编辑

复制一段给 AI 编程工具的提示词,包含源码、依赖和用法

属性

ConfirmPopoverProps

同时支持以下类型的全部属性: Omit<React.ComponentProps<"div">, "children" | "title">

属性类型默认值说明
children* 必填React.ReactElement<React.HTMLAttributes<HTMLElement>>—The element that opens the popover. Any single element, usually a button.
title* 必填React.ReactNode——
descriptionReact.ReactNode——
confirmLabelstring"Confirm"—
cancelLabelstring"Cancel"—
tone"destructive" | "default""destructive"—

安装

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

同类组件