---
title: 'Input Range: Overview'
parts:
  - Input Range
  - Overview
eleventyNavigation:
  key: 'Input Range: Overview'
  order: 10
  parent: Input Range
  title: Overview
---

# Input Range: Overview

A web component based on the native range input. Its purpose is to provide a way for users to select one value from a range of values.

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

```html preview-story
<lion-input-range min="200" max="500" .modelValue="${300}" label="Input range"></lion-input-range>
```

## Features

- Based on our [input](https://github.com/ing-bank/lion/blob/57099bec108436e2c9270e4d5cefc5b05c092050/docs/components/input/overview.md).
- Shows `modelValue` and `unit` above the range input.
- Shows `min` and `max` value after the range input.
- Can hide the `min` and `max` value via `no-min-max-labels`.
- Makes use of [formatNumber](https://github.com/ing-bank/lion/blob/57099bec108436e2c9270e4d5cefc5b05c092050/docs/fundamentals/systems/localize/numbers.md) for formatting and parsing.

## Installation

```bash
npm i --save @lion/ui
```

```js
import { LionInputRange } from '@lion/ui/input-range.js';
// or
import '@lion/ui/define/lion-input-range.js';
```
