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

0.0.1 • Public • Published

Available Scripts

A very simple to use react outside click package.

npm i @alphasquad/outside-click

OR

yarn add @alphasquad/outside-click

Demo

How to use?

import React from "react";
import OutsideClick from "@alphasquad/outside-click";

const Component: React.FC<> = () => {

    const closeMethod = () => {
        //   Action on outside click 
    }

    return <OutsideClick onClose={closeMethod}>
        // ... Your component
    </OutsideClick>
}

export default Component;

Dependents (2)

Package Sidebar

Install

npm i @alphasquad/outside-click

Weekly Downloads

3

Version

0.0.1

License

ISC

Unpacked Size

4.13 kB

Total Files

6

Last publish

Collaborators

  • assadakramiintellect
  • abasitq
  • aqkhan