modal-dropdown
v1.2.1
Published
A simple React component for switching between a label to modal
Downloads
2
Readme
Modal Dropdown
A simple React component for modal list.
Live Demo
Table of Contents
Installation
$ npm install modal-dropdown
$ yarn add modal-dropdown
Usage
Required Props
heading
: Label of Modal,subHeading
: Value of Modal,optionData
: Modal list data |format
: [{Id:id , Name:value , Initial:image as base64}],keyField
: Pass as a params when save function calledsave
which is the function called when the value is updated |params
: Id,Name,keyField.
Optional Props
isAngleRight
: Angle right |default
: true.isAngleDown
: Angle down |default
: false.size
: md' |default
: sm .
Example:
Demo Repository
Original Repository
Note : Do Install react-bootstrap for better UI