| .. | ||
| src | ||
| stories | ||
| test | ||
| index.js | ||
| lion-input-range.js | ||
| package.json | ||
| README.md | ||
Input range
lion-input-range component is based on the native range input.
Its purpose is to provide a way for users to select one value from a range of values.
Features
- Based on lion-input.
- Shows
modelValueandunitabove the range input. - Shows
minandmaxvalue after the range input. - Can hide the
minandmaxvalue viano-min-max-labels. - Makes use of formatNumber for formatting and parsing.
How to use
Installation
npm i --save @lion/input-range
import '@lion/input-range/lion-input-range.js';
Example
<lion-input-range min="200" max="500" .modelValue="${300}" label="Input range"></lion-input-range>