kopia lustrzana https://github.com/shoelace-style/shoelace
31 wiersze
598 B
TypeScript
31 wiersze
598 B
TypeScript
import { LitElement, html } from 'lit';
|
|
import { customElement } from 'lit/decorators.js';
|
|
import styles from './menu-label.styles';
|
|
|
|
/**
|
|
* @since 2.0
|
|
* @status stable
|
|
*
|
|
* @slot - The menu label's content.
|
|
*
|
|
* @csspart base - The component's internal wrapper.
|
|
*/
|
|
@customElement('sl-menu-label')
|
|
export default class SlMenuLabel extends LitElement {
|
|
static styles = styles;
|
|
|
|
render() {
|
|
return html`
|
|
<div part="base" class="menu-label">
|
|
<slot></slot>
|
|
</div>
|
|
`;
|
|
}
|
|
}
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
'sl-menu-label': SlMenuLabel;
|
|
}
|
|
}
|