# @chantelle/dropdown

> The Dropdown component of the Chantelle Pattern Library

Latest version **0.1.2** (published 2018-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @chantelle/dropdown
pnpm add @chantelle/dropdown
yarn add @chantelle/dropdown
bun add @chantelle/dropdown
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2018-05-22 |
| First published | 2018-05-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Chantelle Lingerie GmbH |
| Maintainers | blackakula, chkmrv, ctsd, gabrielizaias, jacopkane, krasnovyehor |

## Links

- npm: https://www.npmjs.com/package/@chantelle/dropdown
- Repository: git@bitbucket.org:editionlingerie/pattern-library
- npm.io page: https://npm.io/package/@chantelle/dropdown

## Recent versions

- 0.1.2 (latest) — 2018-05-22
- 0.1.1 — 2018-05-14
- 0.1.0 — 2018-05-08

## README

#Dropdown

## Installation

```bash
yarn add @chantelle/dropdown
```

## Usage

First, include the CSS in your HTML:

```html
<link rel="stylesheet" href="node_modules/@chantelle/dropdown/dist/styles.css">
```

> Note: you can import the CSS directly into your project if your bundler supports it:

```js
 import '@chantelle/dropdown/dist/styles.css';
```

### React Component

```jsx
import { Dropdown } from '@chantelle/dropdown';

ReactDOM.render(
   <Dropdown
     options={options}
     value={defaultOption}
     placeholder="Select an option"
     className=""
     listClassName=""
   />,
  container
);
```

#### State

Dropdown with `disabled` attribute already apply the disabled styles. The `.pl-dropdown--disabled` class is reserved for links that have the `.pl-dropdown` class.

---
_Source: https://npm.io/package/@chantelle/dropdown · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
