You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.0 KiB
24 lines
1.0 KiB
import * as React from 'react';
|
|
import { OverlayProps as BaseOverlayProps, OverlayArrowProps } from '@restart/ui/Overlay';
|
|
import { TransitionType } from './helpers';
|
|
import { Placement, PopperRef, RootCloseEvent } from './types';
|
|
export interface OverlayInjectedProps {
|
|
ref: React.RefCallback<HTMLElement>;
|
|
style: React.CSSProperties;
|
|
'aria-labelledby'?: string;
|
|
arrowProps: Partial<OverlayArrowProps>;
|
|
show: boolean;
|
|
placement: Placement | undefined;
|
|
popper: PopperRef;
|
|
[prop: string]: any;
|
|
}
|
|
export declare type OverlayChildren = React.ReactElement<OverlayInjectedProps> | ((injected: OverlayInjectedProps) => React.ReactNode);
|
|
export interface OverlayProps extends Omit<BaseOverlayProps, 'children' | 'transition' | 'rootCloseEvent'> {
|
|
children: OverlayChildren;
|
|
transition?: TransitionType;
|
|
placement?: Placement;
|
|
rootCloseEvent?: RootCloseEvent;
|
|
}
|
|
declare const Overlay: React.ForwardRefExoticComponent<OverlayProps & React.RefAttributes<HTMLElement>>;
|
|
export default Overlay;
|