usePopover API
API reference for the usePopover composable.
Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| usePopover | System |
| Popover | Disclosure |
| useClickOutside | System |
| useEventListener | System |
Functions
usePopover
(options?: PopoverOptions) => PopoverReturnOptions
isOpen
Ref<boolean, boolean> | undefinedExternal ref for bidirectional open state (e.g., from defineModel)
Properties
anchorStyles
Readonly<Ref<Record<string, string>, Record<string, string>>>Styles to spread on the activator element (anchor-name)
contentAttrs
Readonly<Ref<{ id: string; popover: ""; }, { id: string; popover: ""; }>>Attrs to spread on the content element (id, popover)
contentStyles
Readonly<Ref<Record<string, string>, Record<string, string>>>Styles to spread on the content element (positioning)