@quid/react-dropdown

4.11.8 • Public • Published

A feature complete "dropdown" component built with React and Downshift.

It supports most of the possible use cases, included category grouping, two column layout, and more.

Installation

npm install --save @quid/react-dropdown

# or

yarn add @quid/react-dropdown

Usage

import Dropdown from '@quid/react-dropdown';

const items = [
  { id: 1, label: 'One' },
  { id: 2, label: 'Two' },
  { id: 3, label: 'Three' },
  { id: 4, label: 'Four' },
  { id: 5, label: 'Five' },
];

<Dropdown items={items} selectedItems={[items[0]]}>
  {({ getInputProps }) => <input readOnly {...getInputProps()} />}
</Dropdown>;

Readme

Keywords

none

Package Sidebar

Install

npm i @quid/react-dropdown

Weekly Downloads

80

Version

4.11.8

License

MIT

Unpacked Size

805 kB

Total Files

35

Last publish

Collaborators

  • quidops