Ninjas Practicing Multidimensionality

    use-lifo-click-outside
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    ⚛️ useLifoClickOutside()

    npm-version

    📡 Detect clicks outside of elements and close components in reverse order.

    Installation

    npm i use-lifo-click-outside

    Usage

    import { useLifoClickOutside } from 'use-lifo-click-outside';
    
    useLifoClickOutside(ref, onClose);
    
    <Portal>
      <Modal ref={ref}>
        ...
      </Modal>
    </Portal>

    Install

    npm i use-lifo-click-outside

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    6.02 kB

    Total Files

    9

    Last publish

    Collaborators

    • faustienf