# kodobe-react-dropdown

> Kodobe React Dropdown

Latest version **2.0.5** (published 2021-03-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install kodobe-react-dropdown
pnpm add kodobe-react-dropdown
yarn add kodobe-react-dropdown
bun add kodobe-react-dropdown
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.5 |
| Published | 2021-03-08 |
| First published | 2021-02-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 15 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Adefemigreat |
| Maintainers | adefemi |

## Links

- npm: https://www.npmjs.com/package/kodobe-react-dropdown
- npm.io page: https://npm.io/package/kodobe-react-dropdown

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2

## Recent versions

- 2.0.5 (latest) — 2021-03-08
- 2.0.4 — 2021-02-10
- 2.0.3 — 2021-02-10
- 2.0.2 — 2021-02-10
- 2.0.1 — 2021-02-10
- 2.0.0 — 2021-02-10
- 1.0.4 — 2021-02-05
- 1.0.3 — 2021-02-05
- 1.0.2 — 2021-02-04
- 1.0.1 — 2021-02-04

## README

# Kodobe React Dropdown

This is a simple react dropdown package

## Install

`npm install kodobe-react-dropdown`

or

`yarn add kodobe-react-dropdown`

## Setup

`import Dropdown from 'kodobe-react-dropdown';`

## Usage

    import Dropdown from "kodobe-react-dropdown";

    function App() {
        return (
            <div>
                <h3>Here is how to use a dropdown</h3>
                 <br />
                <Dropdown
                    options={[
                    { title: "Text 1", value: "text1" },
                    { title: "Text 2", value: "text2" },
                    { title: "Text 3", value: "text3" },
                    ]}
                    value={dropdown}
                    onChange={(e) => setDropdown(e)}
                />
                <br />
                <Dropdown
                    options={[
                    { title: "Text 1", value: "text1" },
                    { title: "Text 2", value: "text2" },
                    { title: "Text 3", value: "text3" },
                    ]}
                    title={"Menu"}
                    onChange={(e) => console.log(e)}
                />
            </div>
        );
    }

## Options

- **options**: List of object of structure {title:"title", value:"value"}
- **title**: dropdown title, use this if you want a static dropdown (string)
- **value**: dropdown value, use this if you want a dynamic dropdown (any)
- **onChange**: handle selection change in dropdown (function)
- **style**: style object
- **className**: string

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