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

1.3.3 • Public • Published

Installation

npm install --save @types/react-outside-click-handler

Summary

This package contains type definitions for react-outside-click-handler (https://github.com/airbnb/react-outside-click-handler).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-outside-click-handler.

index.d.ts

import * as React from "react";

export interface DefaultProps {
    disabled: boolean;
    useCapture: boolean;
    display: "block" | "flex" | "inline" | "inline-block" | "contents";
}

// TODO: Remove partial once DT support TS 3.0, so skipping mandatory listed in default props won't result in compile error
export interface Props extends Partial<DefaultProps> {
    children: React.ReactNode;
    onOutsideClick: (e: MouseEvent) => void;
}

export default class OutsideClickHandler extends React.Component<Props> {
    static defaultProps: DefaultProps;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Ivan Zub, JadowityHerbatnik, and Adam Jones.

Dependents (36)

Package Sidebar

Install

npm i @types/react-outside-click-handler

Weekly Downloads

189,242

Version

1.3.3

License

MIT

Unpacked Size

4.31 kB

Total Files

5

Last publish

Collaborators

  • types