UNPKG

@thinkbuff/figma-react

Version:

A Figma React UI components for creating plugins and widgets

23 lines (22 loc) 1.66 kB
import * as PopoverPrimitive from '@radix-ui/react-popover'; declare const PopoverRoot: import('react').FC<PopoverPrimitive.PopoverProps>; declare const PopoverTrigger: import('react').ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import('react').RefAttributes<HTMLButtonElement>>; declare const PopoverAnchor: import('react').ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & import('react').RefAttributes<HTMLDivElement>>; declare const PopoverClose: import('react').ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & import('react').RefAttributes<HTMLButtonElement>>; declare const PopoverArrow: import('react').ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverArrowProps & import('react').RefAttributes<SVGSVGElement>, "ref"> & import('react').RefAttributes<SVGSVGElement>>; interface PopoverContentProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> { /** * Specify a container element to portal the content into. * * @default document.body */ container?: PopoverPrimitive.PopoverPortalProps['container']; } /** * Displays rich content in a portal, triggered by a button. * * - [Docs](https://www.radix-ui.com/docs/primitives/components/popover) * - [API Reference](https://www.radix-ui.com/primitives/docs/components/popover#api-reference) */ declare const PopoverContent: import('react').ForwardRefExoticComponent<PopoverContentProps & import('react').RefAttributes<HTMLDivElement>>; export { PopoverRoot as Root, PopoverTrigger as Trigger, PopoverContent as Content, PopoverArrow as Arrow, PopoverAnchor as Anchor, PopoverClose as Close, };