Skip to content

Releases: PatrissolJuns/react-click-outside

v1.0.0

16 Mar 19:41
Compare
Choose a tag to compare

@patrissoljuns/react-click-outside v1.0.0

We're thrilled to announce the first release of @patrissoljuns/react-click-outside! This package provides a simple, yet powerful solution for handling click-away events in your React applications. It's perfect for handling scenarios like closing dropdowns, modals, or any other UI components that need to close when a user interacts outside of them.

Features

  • Lightweight and easy-to-use React hook and component for handling click-away events.
  • Support for custom event types, including keyboard and focus events, providing greater flexibility in handling click-away scenarios.
  • scope option to allow for targeting specific elements or the entire document for click-away detection.
  • Enhanced TypeScript support for better type safety and developer experience.

How to install

To add @patrissoljuns/react-click-outside to your project, simply run:
npm install @patrissoljuns/react-click-outside
or
yarn add @patrissoljuns/react-click-outside

Documentation and Examples

Please refer to our comprehensive documentation and examples to get started with @patrissoljuns/react-click-outside. The documentation includes step-by-step guides, code snippets, and explanations of the package's features.

We hope you enjoy using this first release of @patrissoljuns/react-click-outside, and as always, we welcome your feedback, bug reports, and contributions! Feel free to open issues or submit pull requests on our GitHub repository.