lion/packages/input-range
Thomas Allmer 4a93599228 chore: update storybook version
Co-authored-by: Joren Broekema <Joren.Broekema@ing.com>
2020-01-13 13:58:03 +01:00
..
src feat(input-range): create input-range component 2019-12-16 17:41:14 +01:00
stories chore: update storybook version 2020-01-13 13:58:03 +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: update storybook version 2020-01-13 13:58:03 +01: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>