@accelint/design-toolkit
Version:
An open-source component library to serve as part of the entire ecosystem of UX for Accelint.
25 lines (22 loc) • 845 B
TypeScript
import { ReactNode, ComponentProps } from 'react';
import { HeadingProps, PopoverProps as PopoverProps$1, PopoverRenderProps, Pressable } from 'react-aria-components';
interface PopoverProps {
placement?: 'left' | 'right' | 'top' | 'bottom';
children?: ReactNode;
}
interface PopoverTriggerProps extends ComponentProps<typeof Pressable> {
}
interface PopoverContentProps extends Omit<PopoverProps$1, 'children'> {
children?: ReactNode | ((props: PopoverRenderProps & {
close: () => void;
}) => ReactNode);
className?: string;
}
interface PopoverTitleProps extends Omit<HeadingProps, 'children'> {
children?: ReactNode;
}
interface PopoverBodyProps {
children?: ReactNode;
className?: string;
}
export type { PopoverBodyProps, PopoverContentProps, PopoverProps, PopoverTitleProps, PopoverTriggerProps };