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

0.1.3 • Public • Published

click-outside-react

live demo

Installation

yarn add @jyoketsu/click-outside-react

or

npm i @jyoketsu/click-outside-react

Props

Name Type
onClickOutside Function
style Object

Usage

import { ClickOutside } from '@jyoketsu/click-outside-react';

const MyComp = () => (
  <ClickOutside onClickOutside={() => alert('click-outside')}>
    <ChildComp />
  </ClickOutside>
);

Package Sidebar

Install

npm i @jyoketsu/click-outside-react

Weekly Downloads

105

Version

0.1.3

License

MIT

Unpacked Size

17.3 kB

Total Files

12

Last publish

Collaborators

  • jyoketsu