UNPKG

@umbraco-ui/uui-label

Version:

Umbraco UI label component

41 lines (40 loc) 1.02 kB
import { LitElement } from 'lit'; /** * Label element for Custom Element * @element uui-label * @slot - for the label text. * @cssprop --uui-validation-color - Color property for the required asterisk. */ export declare class UUILabelElement extends LitElement { /** * Disables the label. * @type {boolean} * @attr * @default false */ disabled: boolean; /** * Define the related element to this label. * @type {string | HTMLElement} * @attr for * @default null */ for: string | HTMLElement | null; /** * Highlight that the related element is required. * @type {boolean} * @attr required * @default false */ required: boolean; constructor(); private _onClick; protected getForElement(): HTMLElement | null; render(): import("lit").TemplateResult<1>; static styles: import("lit").CSSResult[]; } declare global { interface HTMLElementTagNameMap { 'uui-label': UUILabelElement; } }