@primer/react
Version:
An implementation of GitHub's Primer Design System using React
24 lines • 992 B
TypeScript
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;
} & StyledPopoverProps & HTMLProps<HTMLDivElement>;
export type PopoverContentProps = {
className?: string;
} & StyledPopoverProps & HTMLProps<HTMLDivElement>;
declare const _default: React.ForwardRefExoticComponent<Omit<PopoverProps, "ref"> & React.RefAttributes<HTMLElement>> & {
Content: React.FC<React.PropsWithChildren<PopoverContentProps>>;
};
export default _default;
//# sourceMappingURL=Popover.d.ts.map