UNPKG

@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

28 lines (26 loc) 1.06 kB
import { ModusSize } from '../types'; export type IInputFeedbackLevel = 'error' | 'info' | 'success' | 'warning'; /** * A customizable feedback component used to provide additional context related to form input interactions. * * <b>To use a custom icon, this component requires Modus icons to be installed in the host application. See [Modus Icon Usage](/docs/documentation-modus-icon-usage--docs) for steps.</b> */ export declare class ModusWcInputFeedback { private inheritedAttributes; /** Reference to the host element */ el: HTMLElement; /** Custom CSS class to apply to the outer div element. */ customClass?: string; /** The Modus icon to use instead of the pre-defined icons. */ icon?: string; /** The level informs which icon and color that will be rendered. */ level: IInputFeedbackLevel; /** The message. */ message?: string; /** The size of the feedback component. */ size?: ModusSize; componentWillLoad(): void; private getClasses; private getPresetIcon; render(): any; }