Optionalaria-Identifies the element (or elements) that describes the object.
Optionalaria-Identifies the element (or elements) that provide a detailed, extended description for the object.
Optionalaria-Defines a string value that labels the current element.
Optionalaria-Identifies the element (or elements) that labels the current element.
OptionalarrowThe minimum distance the arrow's edge should be from the edge of the overlay element.
OptionalarrowA ref for the popover arrow element.
OptionalboundaryElement that that serves as the positioning boundary.
The content to display inside the popover. Content is automatically wrapped with padding and scroll behavior.
OptionalclassOptionalcontainerThe placement padding that should be applied between the element and its surrounding container.
OptionalcrossThe additional offset applied along the cross axis between the element and its anchor element.
OptionaldefaultWhether the overlay is open by default (uncontrolled).
OptionaldirOptionalgetOverrides the target element's bounding rectangle. Useful for positioning relative to a specific point such as the mouse cursor (e.g. context menus) or text selection.
The target element.
OptionalhiddenOptionalhideWhether to hide the arrow pointing to the trigger element. Arrow is also automatically hidden for MenuTrigger and SubmenuTrigger contexts.
OptionalinertOptionalisWhether the popover is currently performing an entry animation.
OptionalisWhether the popover is currently performing an exit animation.
OptionalisWhether pressing the escape key to close the popover should be disabled.
Most popovers should not use this option. When set to true, an alternative way to close the popover with a keyboard must be provided.
OptionalisWhether the popover is non-modal, i.e. elements outside the popover may be interacted with by assistive technologies.
Most popovers should not use this option as it may negatively impact the screen reader experience. Only use with components such as combobox, which are designed to handle this situation carefully.
OptionalisWhether the overlay is open by default (controlled).
OptionallangOptionalmaxThe maxHeight specified for the overlay element. By default, it will take all space up to the current viewport height.
OptionaloffsetThe additional offset applied along the main axis between the element and its anchor element.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonHandler that is called when the target element and all descendants lose focus.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonHandler that is called when the target element or a descendant receives focus.
OptionalonHandler that is called when the the focus within state changes.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonHandler that is called when the overlay's open state changes.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalplacementThe placement of the element with respect to its anchor element.
OptionalrenderOverrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components.
Requirements:
<button> is expected, you cannot render an
<a>).OptionalscrollA ref for the scrollable region within the overlay.
OptionalshouldWhen user interacts with the argument element outside of the popover ref, return true if onClose should be called. This gives you a chance to filter out interaction with elements that should not dismiss the popover. By default, onClose will always be called on interaction outside the popover ref.
OptionalshouldWhether the element should flip its orientation (e.g. top to bottom or left to right) when there is insufficient room for it to render completely.
OptionalshouldWhether the popover should appear and disappear without an entry or exit animation. This is used by components such as PreviewTrigger to skip animations when quickly swapping between overlays.
OptionalshouldWhether the overlay should update its position automatically.
OptionalslotA slot name for the component. Slots allow the component to receive props from a parent
component. An explicit null value indicates that the local props completely override all
props received from a parent.
OptionalstyleThe inline style for the element. A function may be provided to compute the style based on component state.
OptionalsuppressA React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
OptionaltranslateOptionaltriggerThe name of the component that triggered the popover. This is reflected on the element
as the data-trigger attribute, and can be used to provide specific
styles for the popover depending on which element triggered it.
OptionaltriggerThe ref for the element which the popover positions itself with respect to.
When used within a trigger component such as DialogTrigger, MenuTrigger, Select, etc., this is set automatically. It is only required when used standalone.
OptionalUNSTABLE_The container element in which the overlay portal will be placed. This may have unknown behavior depending on where it is portalled to.
Properties for Popover