@unleashit/modal
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

Modal

NPM npm (scoped) npm bundle size

Customizable React modal component. Optional animation support when adding/removing from DOM.

modal component

Features

  • Lightweight modal component.
  • Animation support: optionally adds animation classes when adding/removing from DOM.
  • Custom header and/or footer.
  • Portal free. Detects the highest z-index to place modal above other elements without having to insert markup at the root.
  • Default CSS with light/dark mode available
  • CSS module support can override internal styles with a custom module.

Install

npm install @unleashit/modal

Documentation

https://unleashit.github.io/npm-library/components/modal

Demo

https://npm-library-demo.vercel.app/modal

/@unleashit/modal/

    Package Sidebar

    Install

    npm i @unleashit/modal

    Weekly Downloads

    11

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    212 kB

    Total Files

    31

    Last publish

    Collaborators

    • unleashit