mirror of
https://github.com/material-components/material-web.git
synced 2024-09-11 21:57:41 +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
33 lines
772 B
TypeScript
33 lines
772 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2023 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {CSSResultOrNative} from 'lit';
|
|
import {customElement} from 'lit/decorators.js';
|
|
|
|
import {Divider} from './internal/divider.js';
|
|
import {styles} from './internal/divider-styles.js';
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
'md-divider': MdDivider;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @summary A divider is a thin line that groups content in lists and
|
|
* containers.
|
|
*
|
|
* @description Dividers can reinforce tapability, such as when used to separate
|
|
* list items or define tappable regions in an accordion.
|
|
*
|
|
* @final
|
|
* @suppress {visibility}
|
|
*/
|
|
@customElement('md-divider')
|
|
export class MdDivider extends Divider {
|
|
static override styles: CSSResultOrNative[] = [styles];
|
|
}
|