@types/react-popover
TypeScript icon, indicating that this package has built-in type declarations

0.5.8 • Public • Published

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

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ř.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-popover

Weekly Downloads

4,247

Version

0.5.8

License

MIT

Unpacked Size

4.55 kB

Total Files

5

Last publish

Collaborators

  • types