UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

27 lines (26 loc) 1.01 kB
import { EventEmitter, VNode } from "../../stencil-public-runtime"; import { Alignment, Scale } from "../interfaces"; /** * @slot - A slot for adding text and a component that can be labeled. */ export declare class Label { el: HTMLCalciteLabelElement; /** Specifies the text alignment of the component. */ alignment: Alignment; /** Specifies the `id` of the component the label is bound to. Use when the component the label is bound to does not reside within the component. */ for: string; /** Specifies the size of the component. */ scale: Scale; /** Defines the layout of the label in relation to the component. Use `"inline"` positions to wrap the label and component on the same line. */ layout: "inline" | "inline-space-between" | "default"; /** * @internal */ calciteInternalLabelClick: EventEmitter<{ sourceEvent: MouseEvent; }>; labelClickHandler: (event: MouseEvent) => void; connectedCallback(): void; disconnectedCallback(): void; render(): VNode; }