mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 13:46:10 +03:00
We are changing the names of these files to reduce similarity with CSS modules and avoid clashing with tooling built around that. If you're importing `*/internal/styles.css.js`, swap to `*/internal/styles.js`. PiperOrigin-RevId: 611265000
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
/**
|
||
* @license
|
||
* Copyright 2023 Google LLC
|
||
* SPDX-License-Identifier: Apache-2.0
|
||
*/
|
||
|
||
import {CSSResultOrNative} from 'lit';
|
||
import {customElement} from 'lit/decorators.js';
|
||
|
||
import {styles as forcedColorsStyles} from './internal/forced-colors-styles.js';
|
||
import {Slider} from './internal/slider.js';
|
||
import {styles} from './internal/slider-styles.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.
|
||
*
|
||
* @final
|
||
* @suppress {visibility}
|
||
*/
|
||
@customElement('md-slider')
|
||
export class MdSlider extends Slider {
|
||
static override styles: CSSResultOrNative[] = [styles, forcedColorsStyles];
|
||
}
|