import { css, html, LitElement } from "lit"; import { customElement, property } from "lit/decorators.js"; @customElement("thermal-field") export class ThermalField extends LitElement { @property({type: String}) public label!: string; @property({type: String}) public hint?: string; public static styles = css` :host { display: table-row; width: 100%; font-size: var( --thermal-fs ); } .cell { display: table-cell; padding: calc( var( --thermal-gap ) * .5 ); } .label { } .content { } .hint { font-size: calc( var( --thermal-fs-sm ) * .75 ); padding-top: .5em; opacity: .5; max-width: 300px; } `; protected render(): unknown { return html`
${this.label}
${this.hint && html`
${this.hint}
`}
`; } }