# dropdown-lib-higex

> A library of React components created using `create-react-app`.

Latest version **0.2.2** (published 2023-04-03) · 0 weekly downloads

## Install

```sh
npm install dropdown-lib-higex
pnpm add dropdown-lib-higex
yarn add dropdown-lib-higex
bun add dropdown-lib-higex
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2023-04-03 |
| First published | 2023-03-28 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Brice |
| Maintainers | higexo |
| Keywords | react, dropdown |

## Links

- npm: https://www.npmjs.com/package/dropdown-lib-higex
- Repository: https://github.com/higew/dropdown-lib
- Homepage: https://github.com/higew/dropdown-lib#readme
- Issues: https://github.com/higew/dropdown-lib/issues
- npm.io page: https://npm.io/package/dropdown-lib-higex

## Dependencies (4)

- [web-vitals](https://npm.io/package/web-vitals.md) ^2.1.4
- [@testing-library/react](https://npm.io/package/@testing-library/react.md) ^13.4.0
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^5.16.5
- [@testing-library/user-event](https://npm.io/package/@testing-library/user-event.md) ^13.5.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2023-04-03
- 0.2.1 — 2023-04-03
- 0.2.0 — 2023-03-28
- 0.1.0 — 2023-03-28

## README

## dropdown-lib-higex

A library of React components created using `create-react-app`.

## Installation

Run the following command: `npm install dropdown-lib-higex`

## Usage

| Prop name     | Type           | Description                                                                       |
| ------------- | -------------- | --------------------------------------------------------------------------------- |
| options       | **_array_**    | List of options to choose in the dropdown menu, needs a name and a key per option |
| defaultOption | **_string_**   | Default message displayed before the option selection                             |
| onChange      | **_function_** | Get the value of the clicked option from the dropdown                             |

#### Array format

```javascript
const options = [
  { name: "Sales", key: "sal" },
  { name: "Marketing", key: "mar" },
  { name: "Engineering", key: "eng" },
  { name: "Human Ressources", key: "hr" },
  { name: "Legal", key: "leg" },
];
```

#### Calling the components

```javascript
<Dropdown
  options={options}
  defaultOption="Select Department"
  onChange={onChange}
></Dropdown>
```

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