1.0.13 • Published 8 months ago

@nagabhushanadiga/multi-select-dropdown-react v1.0.13

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

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
1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago