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.
import * as React from "react";
declare namespace OutsideClickHandler {
interface DefaultProps {
disabled: boolean;
useCapture: boolean;
display: "block" | "flex" | "inline" | "inline-block" | "contents";
}
interface Props extends Partial<DefaultProps> {
children: React.ReactNode;
onOutsideClick: (e: MouseEvent) => void;
}
}
declare class OutsideClickHandler extends React.Component<OutsideClickHandler.Props> {
static defaultProps: OutsideClickHandler.DefaultProps;
}
export = OutsideClickHandler;
Additional Details
- Last updated: Wed, 25 Sep 2024 19:19:36 GMT
- Dependencies: @types/react
Credits
These definitions were written by Ivan Zub, JadowityHerbatnik, and Adam Jones.