# tidy-select

> JavaScript library for making HTML selects more tidy.

Latest version **1.5.0** (published 2022-06-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install tidy-select
pnpm add tidy-select
yarn add tidy-select
bun add tidy-select
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.0 |
| Published | 2022-06-13 |
| First published | 2020-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 11.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | dphaener |

## Links

- npm: https://www.npmjs.com/package/tidy-select
- Repository: https://github.com/dphaener/tidy-select
- Homepage: https://github.com/dphaener/tidy-select#readme
- Issues: https://github.com/dphaener/tidy-select/issues
- npm.io page: https://npm.io/package/tidy-select

## Recent versions

- 1.5.0 (latest) — 2022-06-13
- 1.4.0 — 2022-03-04
- 1.3.0 — 2022-02-25
- 1.2.0 — 2022-02-07
- 1.1.0 — 2022-01-07
- 1.0.5 — 2022-01-06
- 1.0.4 — 2021-11-30
- 1.0.3 — 2021-11-04
- 1.0.2 — 2021-11-04
- 1.0.1 — 2021-03-23
- 1.0.0 — 2020-12-30

## README

# tidy-select

JavaScript library for making HTML selects more tidy.

Based heavily off of the original jQuery based [tidy-select](https://github.com/derrickreimer/tidy-select),
this turns it into a no dependencies web component.

## Usage

Somewhere in your project just require the tidy select module:
```js
import 'tidy-select';
```

Then you can use it in your HTML:
```html
<tidy-select>
  <option value="1">One!</option>
  <option value="2" data-description="I have a description">Two!</option>
</tidy-select>
```

## Styles

Some styles can be customized using CSS variables:
```css
tidy-select {
  --width: 50%;
  --arrow-color: gray;
  --border-color: red;
  --border-radius: 4px;
  --input-padding: 1rem 1rem;
  --input-line-height: 1.5rem;
  --input-font-size: 1rem;
  --description-font-size: 0.8rem;
}
```

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