react modal component
npm install @acodez/modalReact modal component.
-----
- Installation
- PropsAPI
- Usage
-----
``bash`
npm install @acodez/modal
| Property | Type | Required | Description |
|-----|-----|-----|:-----|
|actionBtnText|string|no|Action button text, default - show modal|string
|cancelBtnText||no|Cancel button text, default - Cancel|string
|saveBtnText||no|Save button text, button will be hidden if no value entered|string
|saveBtnFunction||no|save button function|string
|showCloseBtn||no|show close button on modal or not|string
|disableBgClose||no|if you want to limit closing of modal to button click|
-----
`jsx`
import Modal from "@acodez/modal";
Basic
`jsx`
Modal content here.
Advanced
`jsx``
To close this modal, press the cancel button below or use the Escape key on desktop.