| className | string | undefined | — | Additional classes for this part. Preserve contrast, visible focus and responsive content when adapting styles. |
|---|
| defaultChecked | boolean | undefined | — | Initial checked state for a control supporting uncontrolled selection. Inherited DOM typing does not give a layout wrapper checkbox behavior. |
|---|
| defaultValue | string | number | readonly string[] | undefined | — | Initial value for a control supporting uncontrolled state. Inherited DOM typing alone does not give a layout wrapper input behavior. |
|---|
| autoFocus | boolean | undefined | — | Request automatic focus when the element mounts or the primitive opens, according to its source behavior. Choose initial focus deliberately in context. |
|---|
| id | string | undefined | — | Stable DOM identifier used by labels, descriptions or other explicit associations. |
|---|
| role | React.AriaRole | undefined | — | Semantic role appropriate to the rendered element. Preserve required relationships and keyboard behavior. |
|---|
| onFocus | React.FocusEventHandler<HTMLDivElement> | undefined | — | Receive the native focus event. Preserve the component's existing keyboard and focus behavior. |
|---|
| onBlur | React.FocusEventHandler<HTMLDivElement> | undefined | — | Receive the native blur event when focus leaves this control. |
|---|
| onChange | React.ChangeEventHandler<HTMLDivElement, Element> | undefined | — | Receive the native change event; read the actual control value or checked state from its event target. |
|---|
| onKeyDown | React.KeyboardEventHandler<HTMLDivElement> | undefined | — | Receive keyboard events. Preserve built-in keyboard behavior unless deliberately implementing an accessible alternative. |
|---|
| onClick | React.MouseEventHandler<HTMLDivElement> | undefined | — | Receive activation events. The consumer owns the action performed and its result. |
|---|
| onSelect | React.ReactEventHandler<HTMLDivElement> | undefined | — | Handle the selection event defined by this part's source signature. DOM text-selection events differ from menu or command activation callbacks. |
|---|
| asChild | boolean | undefined | — | Merge this part into one child instead of its default element. Preserve that child's semantics, ref support and accessibility attributes. |
|---|
| side | "top" | "right" | "bottom" | "left" | undefined | — | Preferred side relative to the trigger. Collision handling can adjust the final placement where supported. |
|---|
| sideOffset | number | undefined | 6 | Spacing between the floating content and its trigger along the placement axis. |
|---|
| align | "center" | "start" | "end" | undefined | "start" | Alignment of floating content relative to its trigger, using the supported source values. |
|---|
| alignOffset | number | undefined | — | Offset from the selected floating-content alignment. |
|---|
| arrowPadding | number | undefined | — | Minimum spacing between a floating arrow and the content's edges. |
|---|
| avoidCollisions | boolean | undefined | — | Allow floating content to adjust placement to avoid its collision boundary. |
|---|
| collisionBoundary | (Element | null) | (Element | null)[] | undefined | — | Element or elements used as the boundary for floating-content collision checks. |
|---|
| collisionPadding | number | Partial<Record<"top" | "right" | "bottom" | "left", number>> | undefined | — | Space reserved between floating content and its collision boundary. |
|---|
| sticky | ("partial" | "always") | undefined | — | How floating content remains attached to its trigger while collision positioning is constrained. |
|---|
| hideWhenDetached | boolean | undefined | — | Hide floating content when its trigger becomes detached from the positioning boundary. |
|---|
| updatePositionStrategy | ("always" | "optimized") | undefined | — | Optimized or continuous updates to floating-content positioning, as supported by the primitive. |
|---|
| onEscapeKeyDown | ((event: KeyboardEvent) => void) | undefined | — | Handle Escape in the overlay. Cancelling default behavior changes dismissal responsibility. |
|---|
| onPointerDownOutside | ((event: CustomEvent<{ originalEvent: PointerEvent; }>) => void) | undefined | — | Handle pointer interaction outside the overlay using the primitive's event type. |
|---|
| onFocusOutside | ((event: CustomEvent<{ originalEvent: FocusEvent; }>) => void) | undefined | — | Handle focus moving outside the overlay; preserve the component's intended modality. |
|---|
| onInteractOutside | ((event: CustomEvent<{ originalEvent: PointerEvent; }> | CustomEvent<{ originalEvent: FocusEvent; }>) => void) | undefined | — | Handle supported outside interactions, including primitive-defined cancellation behavior. |
|---|
| ref | React.Ref<HTMLDivElement> | undefined | — | Allows getting a ref to the component instance.
Once the component unmounts, React will set ref.current to null
(or call the ref with null if you passed a callback ref). |
|---|