Home > @uniformdev/design-system > usePopoverComponentContext
usePopoverComponentContext() function
Hook to get the current popover context. Useful for closing the popover with a nested button or interactive element.
Signature:
Returns:
PopoverComponentContextValue | null
Example
const popoverContext = usePopoverComponentContext();