@lion/input-range
TypeScript icon, indicating that this package has built-in type declarations

0.13.1 • Public • Published

Input Range >> Overview ||10

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/input-range/define';
export const main = () => html`
  <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/input-range
import { LionInputRange } from '@lion/input-range';
// or
import '@lion/input-range/define';

Package Sidebar

Install

npm i @lion/input-range

Weekly Downloads

407

Version

0.13.1

License

MIT

Unpacked Size

21.8 kB

Total Files

13

Last publish

Collaborators

  • tlouisse
  • narzac
  • d4kmor