@trimble-oss/moduswebcomponents
Version:
Modus Web Components is a modern, accessible UI library built with Stencil JS that provides reusable web components following Trimble's Modus design system. This updated version focuses on improved flexibility, enhanced theming options, comprehensive cust
27 lines (26 loc) • 899 B
TypeScript
import { ModusSize } from '../types';
/**
* A customizable input label component.
*
* The component supports a `<slot>` for injecting additional custom content inside the label, such as icons or formatted text.
*/
export declare class ModusWcInputLabel {
private inheritedAttributes;
/** Reference to the host element */
el: HTMLElement;
/** The `for` attribute of the label, matching the `id` of the associated input. */
forId?: string;
/** Additional classes for custom styling. */
customClass?: string;
/** The text to display within the label. */
labelText?: string;
/** Whether the label indicates a required field. */
required?: boolean;
/** The size of the label. */
size?: ModusSize;
/** The text rendered beneath the label. */
subLabelText?: string;
componentWillLoad(): void;
private getClasses;
render(): any;
}