0.5.8 • Published 6 months ago
@types/react-popover v0.5.8
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.
index.d.ts
// Type definitions for react-popover 0.5
// Project: https://github.com/littlebits/react-popover
// Definitions by: Jakub Řičař <https://github.com/jacoporicare>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
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;
}
}
Additional Details
- Last updated: Thu, 08 Jul 2021 22:41:25 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Jakub Řičař.