{/*
* _____ _
*|_ _|_ _____ _ __ | |_ _ _
* | | \ \ /\ / / _ \ '_ \| __| | | | Auto-generated file
* | | \ V V / __/ | | | |_| |_| | DO NOT EDIT - changes will be overwritten
* |_| \_/\_/ \___|_| |_|\__|\__, | Generated by: npx nx generate:ui twenty-docs
* |___/
*
* This file is generated from the documentation data in packages/twenty-ui/generated.
* To update it, edit the component prop types or design tokens in twenty-ui and run:
* npx nx generate:ui twenty-docs
*/}
### Popover.Root
A ref to imperative actions.
- `unmount`: Manually unmounts the popover.
Call this after any externally controlled closing animation finishes.
- `close`: Closes the popover imperatively when called.
The content of the popover.
This can be a regular React node or a render function that receives the `payload` of the active trigger.
Whether the popover is initially open.
To render a controlled popover, use the `open` prop instead.
ID of the trigger that the popover is associated with.
This is useful in conjunction with the `defaultOpen` prop to create an initially open popover.
A handle to associate the popover with a trigger.
If specified, allows external triggers to control the popover's open state.
Determines if the popover enters a modal state when open.
- `true`: user interaction is limited to the popover: document page scroll is locked, and pointer interactions on outside elements are disabled.
- `false`: user interaction with the rest of the document is allowed.
- `'trap-focus'`: focus is trapped inside the popover, but document page scroll is not locked and pointer interactions outside of it remain enabled.
On touch devices, a `true` modal blocks outside taps but leaves the page scrollable unless the popup spans nearly the full viewport width, matching native iOS behavior.
When `modal` is `true`, focus trapping is enabled only if `` is rendered
inside ``. It can be visually hidden with your own CSS if needed, such as
Tailwind's `sr-only` utility.
When `modal` is `'trap-focus'`, render `` inside `` so touch
screen readers can escape the popup.
Event handler called when the popover is opened or closed.
Event handler called after any animations complete when the popover is opened or closed.
Whether the popover is currently open.
ID of the trigger that the popover is associated with.
This is useful in conjunction with the `open` prop to create a controlled popover.
There's no need to specify this prop when the popover is uncontrolled (that is, when the `open` prop is not set).
### Popover.Trigger
CSS class applied to the element, or a function that
returns a class based on the component's state.
How long to wait before closing the popover that was opened on hover.
Specified in milliseconds.
Requires the `openOnHover` prop.
How long to wait before the popover may be opened on hover. Specified in milliseconds.
Requires the `openOnHover` prop.
A handle to associate the trigger with a popover.
ID of the trigger. In addition to being forwarded to the rendered element,
it is also used to specify the active trigger for the popover in controlled mode (with the PopoverRoot `triggerId` prop).
Whether the component renders a native `