1.2.1 • Published 2 years ago
@swimshahriar/re-modal v1.2.1
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 |