mirror of
https://github.com/material-components/material-web.git
synced 2024-10-26 21:56:56 +03:00
6ec3f06429
BREAKING CHANGE: Rename `@material/web/<component>/lib` to `@material/web/<component>/internal`. Prefer not using internal files. PiperOrigin-RevId: 550633216
37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
/**
|
||
* @license
|
||
* Copyright 2023 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/
|
||
|
||
import {customElement} from 'lit/decorators.js';
|
||
|
||
import {styles as forcedColorsStyles} from './internal/forced-colors-styles.css.js';
|
||
import {Slider} from './internal/slider.js';
|
||
import {styles} from './internal/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];
|
||
}
|