"use client";
import { ToggleTip } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
content (required) | ReactNode | — | — |
children | ReactNode | a "?" icon button | Custom trigger: one button element (default: a "?" icon button). |
closeLabel | string | from the message catalog | Accessible name of the close button (default from the message catalog). |
defaultOpen | boolean | — | Initial open state when uncontrolled. |
label | string | — | Visible label (also the accessible name). |
onOpenChange | (open: boolean) => void | — | Called with the next open state. |
open | boolean | — | Open state (controlled). |
placement | FloatingPlacement | — | Where it sits relative to its anchor (start/end follow the writing direction). |
contentrequiredReactNode
childrendefault a "?" icon buttonReactNode
Custom trigger: one button element (default: a "?" icon button).
closeLabeldefault from the message catalogstring
Accessible name of the close button (default from the message catalog).
defaultOpenboolean
Initial open state when uncontrolled.
labelstring
Visible label (also the accessible name).
onOpenChange(open: boolean) => void
Called with the next open state.
openboolean
Open state (controlled).
placementFloatingPlacement
Where it sits relative to its anchor (start/end follow the writing direction).
Other props are passed to the root element (HTMLAttributes<HTMLSpanElement>), including className, style, id and aria-* attributes.
<ToggleTip content="Helpful detail" />