GoScrobble/web/node_modules/reactstrap/es/Popover.d.ts

41 lines
1.2 KiB
TypeScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
import * as React from 'react';
import * as Popper from 'popper.js';
import { CSSModule } from './index';
interface PopoverChildrenRenderProps {
scheduleUpdate: () => void;
}
export type PopoverChildren =
| ((props: PopoverChildrenRenderProps) => React.ReactNode)
| React.ReactNode;
export interface PopoverProps extends React.HTMLAttributes<HTMLElement> {
[key: string]: any;
isOpen?: boolean;
toggle?: React.MouseEventHandler<any> | (() => void);
target: string | HTMLElement | React.RefObject<HTMLElement>;
container?: string | HTMLElement | React.RefObject<HTMLElement>;
boundariesElement?: Popper.Boundary | Element;
placement?: Popper.Placement;
popperClassName?: string;
innerClassName?: string;
disabled?: boolean;
hideArrow?: boolean;
placementPrefix?: string;
delay?: number | { show: number; hide: number };
modifiers?: Popper.Modifiers;
positionFixed?: boolean;
cssModule?: CSSModule;
fade?: boolean;
flip?: boolean;
children?: PopoverChildren;
}
export interface UncontrolledPopoverProps extends PopoverProps {
defaultOpen?: boolean;
}
declare class Popover extends React.Component<PopoverProps> {}
export default Popover;