UNPKG

@baseplate-dev/ui-components

Version:

Shared UI component library

17 lines 975 B
import type * as React from 'react'; import { Popover as PopoverPrimitive } from 'radix-ui'; /** * Displays rich content in a portal, triggered by a button. * * https://ui.shadcn.com/docs/components/popover */ declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): React.ReactElement; declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): React.ReactElement; interface PopoverContentProps extends React.ComponentPropsWithRef<typeof PopoverPrimitive.Content> { width?: 'default' | 'none'; padding?: 'default' | 'none'; } declare function PopoverContent({ className, align, sideOffset, width, padding, ...props }: PopoverContentProps): React.ReactElement; declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): React.ReactElement; export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger }; //# sourceMappingURL=popover.d.ts.map