# dropdown-styled

> A styled select component

Latest version **1.0.5** (published 2024-03-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install dropdown-styled
pnpm add dropdown-styled
yarn add dropdown-styled
bun add dropdown-styled
```

## 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 | 1.0.5 |
| Published | 2024-03-13 |
| First published | 2024-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Laurie Shamseldin |
| Maintainers | laurieshamseldin |
| Keywords | dropdown, select, styled, component |

## Links

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

## Recent versions

- 1.0.5 (latest) — 2024-03-13
- 1.0.4 — 2024-03-12
- 1.0.3 — 2024-03-12
- 1.0.2 — 2024-03-08
- 1.0.0 — 2024-03-08

## README

# Plugin dropdown-styled

This plugin allows you to display a selection element (select) with options from a list of elements. You can import a JS or JSON file.

## Installation

You can install this plugin via npm using the following command:

```
npm install dropdown-styled

ou

yarn add dropdown-styled
```

## Usage

```javascript
import Select from 'dropdown-styled';
```

Then, you can use the Select component in your JSX code like this:

```javascript
<Select
  name="exemple"
  textLabel="Exemple"
  options={[
    { text: 'Option 1', value: 'option1' },
    { text: 'Option 2', value: 'option2' },
  ]}
  value={selectedValue}
  onChange={handleChange}
/>
```

Make sure to replace selectedValue and handleChange with the appropriate values from your application.

## Properties

* name: String - The name of the selection element.
* textLabel: String - The label text of the selection element.
* options: Object array - An array of objects representing the options of the selection element. Each object should have the properties text and value.
* value: String - The selected value of the selection element.
* onChange: Function - The callback function called when the value of the selection element changes.


## Licence

[Laurie Shamseldin Musson](https://github.com/LaurieShamseldin)

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