Popover API
Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.
Popover9 props1 callbacks0 methods
Props9
| Name | Type | Description |
|---|---|---|
openRequired | boolean | Expanded or visible state of the surface or disclosure. |
anchorRequired |
| DOM element used as the positioning reference for the floating surface. |
appendToOptional |
| Optional mount scope for inherited theme tokens and text direction. |
closeOnOutsideOptional | boolean | undefined | Close on pointer presses outside the anchor and content. Defaults to true. |
closeOnEscapeOptional | boolean | undefined | Close on Escape. Defaults to true. |
childrenOptional |
| Content rendered inside the component. Supply nodes from the framework adapter you are using. |
labelOptional | string | undefined | Label content or accessible name for the component, as rendered by this control. |
classNameOptional | string | undefined | Additional CSS classes applied to the component root. |
roleOptional | "dialog" | "menu" | undefined | Accessibility role used by the rendered element. |
Events and callbacks1
| Name | Type | Description |
|---|---|---|
onCloseRequired |
| Requests that the parent close the surface or picker. |
Methods0
No component-specific imperative methods. Use props and callbacks to control this component.