@activecollab/components
Version:
ActiveCollab Components
33 lines • 1.07 kB
TypeScript
import React, { CSSProperties, ReactNode, HTMLAttributes } from "react";
import { PositioningStrategy } from "@popperjs/core";
import { Placement } from ".";
interface TransitionProps {
in: boolean;
onEnter: () => void;
onExited: () => void;
}
interface IChildProps {
placement: Placement;
transitionProps: Partial<TransitionProps>;
}
interface PopperProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
/** Anchor Element. */
anchorEl?: Element | null;
/** Open */
open?: boolean;
/** Inline style */
style?: CSSProperties;
/** Child with transition */
transition?: boolean;
/** Placement */
placement?: Placement;
/** Strategy */
strategy?: PositioningStrategy;
/** After Write callback */
afterWrite?: (...args: any[]) => void;
/** Component children */
children?: ReactNode | React.FC<Partial<IChildProps>>;
}
export declare const Popper: React.ForwardRefExoticComponent<PopperProps & React.RefAttributes<HTMLDivElement>>;
export {};
//# sourceMappingURL=Popper.d.ts.map