mbio-ui
Version:
Web components library containing lightweight, ready-to-use and framework-agnostic User Interface elements.
22 lines (21 loc) • 901 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 besides the label.
* @prop {Boolean} button - If set to true, hover and click effects will be added.
* @prop {Boolean} removable - If set to true, a close icon is displayed. Clicking on it dispatches a remove event.
*
* @fires remove - Dispatched when clicking on the close icon (removable only).
*/
export declare class mbioTag extends LitElement {
label: string;
icon: string | undefined;
button: boolean | undefined;
removable: boolean | undefined;
static get styles(): import("lit").CSSResultGroup[];
render(): import("lit-html").TemplateResult<1>;
attributeChangedCallback(name: string, oldval: string, newval: string): void;
handleRemove(): void;
}