mirror of
https://github.com/home-assistant/frontend.git
synced 2025-10-04 17:29:43 +00:00
23 lines
522 B
TypeScript
23 lines
522 B
TypeScript
import { CheckboxBase } from "@material/mwc-checkbox/mwc-checkbox-base";
|
|
import { styles } from "@material/mwc-checkbox/mwc-checkbox.css";
|
|
import { css } from "lit";
|
|
import { customElement } from "lit/decorators";
|
|
|
|
@customElement("ha-checkbox")
|
|
export class HaCheckbox extends CheckboxBase {
|
|
static override styles = [
|
|
styles,
|
|
css`
|
|
:host {
|
|
--mdc-theme-secondary: var(--primary-color);
|
|
}
|
|
`,
|
|
];
|
|
}
|
|
|
|
declare global {
|
|
interface HTMLElementTagNameMap {
|
|
"ha-checkbox": HaCheckbox;
|
|
}
|
|
}
|