forked from material-components/material-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslider.ts
36 lines (32 loc) · 1.03 KB
/
slider.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {customElement} from 'lit/decorators.js';
import {styles as forcedColorsStyles} from './lib/forced-colors-styles.css.js';
import {Slider} from './lib/slider.js';
import {styles} from './lib/slider-styles.css.js';
declare global {
interface HTMLElementTagNameMap {
'md-slider': MdSlider;
}
}
/**
* @summary Sliders allow users to view and select a value (or range) along
* a track.
*
* @description
* Changes made with sliders are immediate, allowing the user to make slider
* adjustments while determining a selection. Sliders shouldn’t be used to
* adjust settings with any delay in providing user feedback. Sliders reflect
* the current state of the settings they control.
*
* __Example usages:__
* - Sliders are ideal for adjusting settings such as volume and brightness, or
* for applying image filters.
*/
@customElement('md-slider')
export class MdSlider extends Slider {
static override styles = [styles, forcedColorsStyles];
}