material-web/slider/slider.ts
Andrew Jakubowicz 6ec3f06429 fix!: rename "lib" directory to "internal"
BREAKING CHANGE: Rename `@material/web/<component>/lib` to `@material/web/<component>/internal`. Prefer not using internal files.

PiperOrigin-RevId: 550633216
2023-07-24 12:02:59 -07:00

37 lines
1.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @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 shouldnt 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];
}