Component docs
Loading
"use client";
import { Popconfirm } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
onConfirm (required) | () => void | — | — |
cancelLabel | ReactNode | — | — |
confirmLabel | ReactNode | — | — |
defaultOpen | boolean | — | Initial open state when uncontrolled. |
description | ReactNode | — | Supporting text. |
onCancel | () => void | — | — |
onOpenChange | (open: boolean) => void | — | Called with the next open state. |
open | boolean | — | Open state (controlled). |
title | ReactNode | — | Title (any content). |
trigger | ReactNode | — | — |
onConfirmrequired() => void
cancelLabelReactNode
confirmLabelReactNode
defaultOpenboolean
Initial open state when uncontrolled.
descriptionReactNode
Supporting text.
onCancel() => void
onOpenChange(open: boolean) => void
Called with the next open state.
openboolean
Open state (controlled).
titleReactNode
Title (any content).
triggerReactNode
Other props are passed to the root element (HTMLAttributes<HTMLSpanElement>), including className, style, id and aria-* attributes.
<Popconfirm onConfirm={confirm} />