@swimshahriar/re-modal
v1.2.1
Published
A simple react modal, dropdown component
Downloads
18
Maintainers
Readme
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 |