Installation
npm install --save @types/react-popover
Summary
This package contains type definitions for react-popover (https://github.com/littlebits/react-popover).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-popover.
import * as React from "react";
export = Popover;
declare class Popover extends React.Component<Popover.PopoverProps> {}
declare namespace Popover {
type PopoverPlace =
| "above"
| "right"
| "below"
| "left"
| "row"
| "column"
| "start"
| "end";
interface PopoverProps {
body: React.ReactNode;
isOpen?: boolean | undefined;
preferPlace?: PopoverPlace | undefined;
place?: PopoverPlace | undefined;
onOuterAction?: ((event: Event) => void) | undefined;
refreshIntervalMs?: number | undefined;
enterExitTransitionDurationMs?: number | undefined;
tipSize?: number | undefined;
className?: string | undefined;
style?: React.CSSProperties | undefined;
target?: React.ReactElement | undefined;
appendTarget?: Element | undefined;
children?: React.ReactNode;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Jakub Řičař.