mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-18 05:57:21 +00:00
29 lines
703 B
TypeScript
29 lines
703 B
TypeScript
import { css, html, LitElement } from "lit";
|
|
import { customElement } from "lit/decorators";
|
|
|
|
@customElement("ha-section-title")
|
|
class HaSectionTitle extends LitElement {
|
|
protected render() {
|
|
return html`<slot></slot>`;
|
|
}
|
|
|
|
static styles = css`
|
|
:host {
|
|
background-color: var(--ha-color-fill-neutral-quiet-resting);
|
|
padding: var(--ha-space-1) var(--ha-space-2);
|
|
font-weight: var(--ha-font-weight-bold);
|
|
color: var(--secondary-text-color);
|
|
min-height: var(--ha-space-6);
|
|
display: flex;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
}
|
|
`;
|
|
}
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
"ha-section-title": HaSectionTitle;
|
|
}
|
|
}
|