mirror of
https://github.com/home-assistant/frontend.git
synced 2025-10-10 04:09:47 +00:00
26 lines
594 B
TypeScript
26 lines
594 B
TypeScript
import { css, html, LitElement, TemplateResult } from "lit";
|
|
import { customElement } from "lit/decorators";
|
|
|
|
@customElement("ha-input-helper-text")
|
|
class InputHelperText extends LitElement {
|
|
protected render(): TemplateResult {
|
|
return html`<slot></slot>`;
|
|
}
|
|
|
|
static styles = css`
|
|
:host {
|
|
display: block;
|
|
color: var(--mdc-text-field-label-ink-color, rgba(0, 0, 0, 0.6));
|
|
font-size: 0.75rem;
|
|
padding-left: 16px;
|
|
padding-right: 16px;
|
|
}
|
|
`;
|
|
}
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
"ha-input-helper-text": InputHelperText;
|
|
}
|
|
}
|