23 lines
591 B
TypeScript
23 lines
591 B
TypeScript
|
import * as React from 'react';
|
||
|
|
||
|
import Overlay from './Overlay';
|
||
|
|
||
|
type TriggerType = 'hover' | 'click' | 'focus';
|
||
|
|
||
|
export interface OverlayTriggerProps
|
||
|
extends React.ComponentPropsWithRef<typeof Overlay> {
|
||
|
children: React.ReactNode;
|
||
|
trigger?: TriggerType | TriggerType[];
|
||
|
delay?: number | { show: number; hide: number };
|
||
|
defaultShow?: boolean;
|
||
|
flip?: boolean;
|
||
|
overlay: React.ReactNode | (() => React.ReactNode);
|
||
|
target?: never;
|
||
|
onHide?: never;
|
||
|
show?: never;
|
||
|
}
|
||
|
|
||
|
declare class OverlayTrigger extends React.Component<OverlayTriggerProps> {}
|
||
|
|
||
|
export default OverlayTrigger;
|