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

1.2.1 • Public • Published

Features

  • Supports Nested modal
  • Supports draggable dropdown menu
  • Style object for styling 🖌

Installation

npm i @swimshahriar/re-modal
# or
yarn add @swimshahriar/re-modal

Examples

Link: sandbox

Props

Prop Type isRequired
open boolean required
onClose function required
type string ('modal','dropdown') optional
isOverlay boolean optional
draggable boolean optional
targetRef useRef Element required if type is 'dropdown'
style style object optional
dragAreaStyle style object optional

Package Sidebar

Install

npm i @swimshahriar/re-modal

Weekly Downloads

0

Version

1.2.1

License

MIT

Unpacked Size

14.8 kB

Total Files

5

Last publish

Collaborators

  • swimshahriar