UNPKG

sanity-plugin-media

Version:

This version of `sanity-plugin-media` is for Sanity Studio V3.

14 lines (11 loc) 298 B
import {type PopoverProps, usePortal} from '@sanity/ui' export function usePortalPopoverProps(): PopoverProps { const portal = usePortal() return { animate: true, constrainSize: true, floatingBoundary: portal.element, portal: true, referenceBoundary: portal.element } }