lion/docs/components/input-range/overview.md
Pavlik Kiselev 11bbc5fff5
feat: migrated the navigation metadata from inline MD title decorations to frontmatter
* feat: migrated the navigation metadata from inline MD title decorations to frontmatter

* fix: fixed frontmatter metadate for api-table MDs

* fix: fixed frontmatter eslint issue
2025-03-19 10:08:22 +01:00

1.1 KiB

parts title eleventyNavigation
Input Range
Overview
Input Range: Overview
key order parent title
Input Range: Overview 10 Input Range 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.

import { html } from '@mdjs/mdjs-preview';
import '@lion/ui/define/lion-input-range.js';
<lion-input-range min="200" max="500" .modelValue="${300}" label="Input range"></lion-input-range>

Features

  • Based on our input.
  • 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 for formatting and parsing.

Installation

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