import "@material/mwc-icon-button"; import type { IconButton } from "@material/mwc-icon-button"; import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit"; import { customElement, property, query } from "lit/decorators"; import { ifDefined } from "lit/directives/if-defined"; import "./ha-svg-icon"; @customElement("ha-icon-button") export class HaIconButton extends LitElement { @property({ type: Boolean, reflect: true }) disabled = false; // SVG icon path (if you need a non SVG icon instead, use the provided slot to pass an in) @property({ type: String }) path?: string; // Label that is used for ARIA support and as tooltip @property({ type: String }) label?: string; // These should always be set as properties, not attributes, // so that only the