GitHub

Customisable dropdown select for react

Coverage Status Codacy Badge

Features

  • configurable via props
  • total custom components overrides for all internals via render prop callbacks (with access to internal props, state and methods)
  • stylable via css (or custom components)
  • portal support for rendering dropdown outside local DOM tree. e.g. in document.body
  • auto position
  • small bundle size

Installation

npm install --save react-dropdown-select

Docs and Storybook

Docs | Storybook

Motivation

react-select is very nice, but sometimes project requirements are beyond it's abilities

Usage

import:

import Select from "react-dropdown-select";

and use as:

"const options = [ { value: 1, label: 'Leanne Graham', }, { value: 2, label: 'Ervin Howell', }, ];

Read the original on github.com ↗