usePopoverStore
▸ usePopoverStore(props?
): PopoverStore
Creates a popover store.
Parameters
Name | Type |
---|---|
props? | PopoverStoreProps |
Returns
PopoverStore
See
https://ariakit.org/components/popover (opens in a new tab)
Example
const popover = usePopoverStore();
<PopoverDisclosure store={popover}>Disclosure</PopoverDisclosure>
<Popover store={popover}>Popover</Popover>
Defined in
node_modules/.pnpm/@ariakit+react-core@0.3.5_react-dom@18.2.0_react@18.2.0/node_modules/@ariakit/react-core/cjs/popover/popover-store.d.ts:15