UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

29 lines 1.26 kB
import type { SxProp } from '../sx'; import type { HTMLProps } from 'react'; import React from 'react'; type CaretPosition = 'top' | 'bottom' | 'left' | 'right' | 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'left-bottom' | 'left-top' | 'right-bottom' | 'right-top'; type StyledPopoverProps = { /** * @deprecated `caret` is deprecated and will be removed in v38. */ caret?: CaretPosition; relative?: boolean; open?: boolean; } & SxProp; export type PopoverProps = { /** Class name for custom styling */ className?: string; as?: React.ElementType; } & StyledPopoverProps & HTMLProps<HTMLDivElement>; export type PopoverContentProps = { className?: string; as?: React.ElementType; width?: 'xsmall' | 'small' | 'large' | 'medium' | 'auto' | 'xlarge'; height?: 'small' | 'large' | 'medium' | 'auto' | 'xlarge' | 'fit-content'; overflow?: 'auto' | 'hidden' | 'scroll' | 'visible'; } & StyledPopoverProps & HTMLProps<HTMLDivElement>; declare const _default: React.ForwardRefExoticComponent<Omit<PopoverProps, "ref"> & React.RefAttributes<HTMLDivElement>> & { Content: React.FC<React.PropsWithChildren<PopoverContentProps>>; }; export default _default; //# sourceMappingURL=Popover.d.ts.map