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.
<lion-input-range min="200" max="500" .modelValue="${300}" label="Input range"></lion-input-range>
Features
- Based on our input.
- Shows
modelValue
andunit
above the range input. - Shows
min
andmax
value after the range input. - Can hide the
min
andmax
value viano-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';