@nagabhushanadiga/multi-select-dropdown-react
v1.0.13
Published
A customizable, responsive multi-select dropdown built with Material UI
Downloads
14
Maintainers
Readme
Multi Select Dropdown
A customizable, responsive multi-select dropdown built with Material UI (MUI).
Installation
npm install @nagabhushanadiga/multi-select-dropdown-react
## Usage
import MultiSelectDropdown from '@nagabhushanadiga/multi-select-dropdown-react';
import React, { useState } from 'react';
function App() {
const [selected, setSelected] = useState([]);
return (
<MultiSelectDropdown
label="Select Options"
options={['Option 1', 'Option 2', 'Option 3']}
selected={selected}
onChange={setSelected}
/>
);
}
props provided
Prop | Type | Description
label | string | Label text
options | array | List of options
selected | array | Selected values
onChange | function | Callback when changed
placeholder | string | Placeholder text
fullWidth | boolean | Full width?
customStyles | object | Style overrides
menuMaxHeight | number | Max menu height
...selectProps | any | Extra MUI props
