mbio-ui
Version:
Web components library containing lightweight, ready-to-use and framework-agnostic User Interface elements.
21 lines (20 loc) • 882 B
TypeScript
import { LitElement } from 'lit';
import '../icon';
import '../text';
/**
* @prop {String} label - If set, defines the text label.
* @prop {String} icon - If set, defines the icon shown instead of text label.
* @prop {Boolean} active - If set to true, a highlight style gets applied. Only one item can be active at a time.
* @prop {Boolean} disabled - If set to true, disables mouse clicks and the style gets updated.
*/
export declare class mbioSwitchItem extends LitElement {
label: string | undefined;
icon: string | undefined;
active: boolean | undefined;
disabled: boolean | undefined;
static get styles(): import("lit").CSSResultGroup[];
render(): import("lit-html").TemplateResult<1>;
attributeChangedCallback(name: string, oldval: string, newval: string): void;
connectedCallback(): void;
handleActive(): void;
}