UNPKG

@vela-ui/react

Version:

Vela UI React components

40 lines (37 loc) 1.5 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import * as tailwind_variants from 'tailwind-variants'; import { VariantProps } from 'tailwind-variants'; import { Popover as Popover$1, DialogProps, DialogTrigger } from 'react-aria-components'; declare const popoverVariants: tailwind_variants.TVReturnType<{ isEntering: { true: string[]; }; isExiting: { true: string[]; }; }, undefined, "bg-popover text-popover-foreground z-50 rounded-md border shadow-md outline-hidden transition duration-200", { isEntering: { true: string[]; }; isExiting: { true: string[]; }; }, undefined, tailwind_variants.TVReturnType<{ isEntering: { true: string[]; }; isExiting: { true: string[]; }; }, undefined, "bg-popover text-popover-foreground z-50 rounded-md border shadow-md outline-hidden transition duration-200", unknown, unknown, undefined>>; interface PopoverProps extends React.ComponentProps<typeof Popover$1>, VariantProps<typeof popoverVariants> { /** * Whether the element should render an arrow. * @default false */ showArrow?: boolean; } declare const PopoverTrigger: typeof DialogTrigger; declare const Popover: ({ className, showArrow, ...props }: PopoverProps) => react_jsx_runtime.JSX.Element; declare function PopoverContent({ className, ...props }: DialogProps): react_jsx_runtime.JSX.Element; export { Popover, PopoverContent, type PopoverProps, PopoverTrigger };