# @lion/input-stepper

> This component enables the user to increase and decrease a numeric value by predefined range.

Latest version **0.9.1** (published 2022-09-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lion/input-stepper
pnpm add @lion/input-stepper
yarn add @lion/input-stepper
bun add @lion/input-stepper
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.9.1 |
| Published | 2022-09-08 |
| First published | 2020-09-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 39.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1963 |
| Author | ing-bank |
| Maintainers | narzac, d4kmor |
| Keywords | input, input-stepper, lion, web-components |

## Links

- npm: https://www.npmjs.com/package/@lion/input-stepper
- Repository: https://github.com/ing-bank/lion
- Homepage: https://github.com/ing-bank/lion/
- Issues: https://github.com/ing-bank/lion/issues
- npm.io page: https://npm.io/package/@lion/input-stepper

## Dependencies (3)

- [@lion/core](https://npm.io/package/@lion/core.md) ^0.24.0
- [@lion/input](https://npm.io/package/@lion/input.md) ^0.18.0
- [@lion/form-core](https://npm.io/package/@lion/form-core.md) ^0.18.3

## Recent versions

- 0.9.1 (latest) — 2022-09-08
- 0.5.5 (lit1) — 2023-04-13
- 0.9.0 — 2022-05-31
- 0.5.4 — 2022-05-16
- 0.5.3 — 2022-05-09
- 0.5.2 — 2022-05-09
- 0.8.0 — 2022-04-06
- 0.7.0 — 2022-03-07
- 0.6.8 — 2022-01-04
- 0.6.7 — 2021-11-11
- 0.6.6 — 2021-10-19
- 0.6.5 — 2021-09-01
- 0.6.4 — 2021-07-30
- 0.6.3 — 2021-07-21
- 0.6.2 — 2021-07-05
- … 34 more at https://npm.io/package/@lion/input-stepper/versions

## README

# Input Stepper >> Overview ||10

A web component that enables the user to increase and decrease a numeric value by predefined range. It is a combination of two buttons and a number input field with an optional slot `after` to suffix the extra information.

```js script
import { html } from '@mdjs/mdjs-preview';
import '@lion/input-stepper/define';
```

```js preview-story
export const main = () => html`
  <lion-input-stepper max="5" min="0" name="count">
    <label slot="label">RSVP</label>
    <div slot="help-text">Max. 5 guests</div>
  </lion-input-stepper>
`;
```

## Features

- Based on our [input](https://github.com/ing-bank/lion/blob/650657231a4ec83592d45cd69836d28436635340/docs/components/input/overview.md).
- Set `min` and `max` value to define the range.
- Set `step` value in integer or decimal to increase and decrease the value.
- Use `ArrowUp` or `ArrowDown` to update the value.

## Installation

```bash
npm i --save @lion/input-stepper
```

```js
import { LionInputStepper } from '@lion/input-stepper';
// or
import '@lion/input-stepper/define';
```

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