npm.io
0.5.8 • Published 2 years ago

@types/react-popover

Licence
MIT
Version
0.5.8
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Jakub Řičař.