mirror of
https://github.com/material-components/material-web.git
synced 2026-03-09 00:09:23 +08:00
BREAKING CHANGE: Rename `@material/web/elevation/lib` to `@material/web/elevation/internal`. Prefer not using internal files. PiperOrigin-RevId: 550038448
27 lines
606 B
TypeScript
27 lines
606 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {customElement} from 'lit/decorators.js';
|
|
|
|
import {Elevation} from './internal/elevation.js';
|
|
import {styles} from './internal/elevation-styles.css.js';
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
'md-elevation': MdElevation;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* The `<md-elevation>` custom element with default styles.
|
|
*
|
|
* Elevation is the relative distance between two surfaces along the z-axis.
|
|
*/
|
|
@customElement('md-elevation')
|
|
export class MdElevation extends Elevation {
|
|
static override styles = [styles];
|
|
}
|