lion/packages/input-range
CircleCI ad01e959c6 chore: release new versions
- @lion/button@0.4.6
 - @lion/calendar@0.5.8
 - @lion/checkbox-group@0.4.4
 - @lion/checkbox@0.2.13
 - @lion/choice-input@0.4.11
 - @lion/field@0.7.1
 - @lion/fieldset@0.5.7
 - @lion/form-system@0.2.16
 - @lion/form@0.3.14
 - @lion/input-amount@0.4.2
 - @lion/input-date@0.4.2
 - @lion/input-datepicker@0.7.6
 - @lion/input-email@0.4.2
 - @lion/input-iban@0.4.2
 - @lion/input-range@0.1.1
 - @lion/input@0.4.2
 - @lion/localize@0.7.2
 - @lion/option@0.3.11
 - @lion/radio-group@0.4.5
 - @lion/radio@0.2.13
 - @lion/select-rich@0.8.9
 - @lion/select@0.4.2
 - @lion/switch@0.4.2
 - @lion/textarea@0.4.2
 - @lion/validate@0.5.4
2020-01-08 15:32:29 +00:00
..
src feat(input-range): create input-range component 2019-12-16 17:41:14 +01:00
stories feat(input-range): create input-range component 2019-12-16 17:41:14 +01:00
test feat(input-range): create input-range component 2019-12-16 17:41:14 +01:00
CHANGELOG.md chore: release new versions 2020-01-08 15:32:29 +00:00
index.js feat(input-range): create input-range component 2019-12-16 17:41:14 +01:00
lion-input-range.js feat(input-range): create input-range component 2019-12-16 17:41:14 +01:00
package.json chore: release new versions 2020-01-08 15:32:29 +00:00
README.md feat(input-range): create input-range component 2019-12-16 17:41:14 +01:00

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 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.

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>