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

44 lines (43 loc) 1.46 kB
import { EventEmitter } from '../../stencil-public-runtime'; import { ModusSize } from '../types'; /** * A customizable switch component */ export declare class ModusWcSwitch { private inheritedAttributes; /** Reference to the host element */ el: HTMLElement; /** Custom CSS class to apply to the inner div. */ customClass?: string; /** The disabled state of the switch. */ disabled?: boolean; /** The indeterminate state of the switch. */ indeterminate: boolean; /** The ID of the input element. */ inputId?: string; /** The tabindex of the input. */ inputTabIndex?: number; /** The text to display within the label. */ label?: string; /** Name of the form control. Submitted with the form as part of a name/value pair. */ name?: string; /** A value is required for the form to be submittable. */ required?: boolean; /** The size of the input. */ size?: ModusSize; /** The value of the switch. */ value: boolean; /** Emitted when the input loses focus. */ inputBlur: EventEmitter<FocusEvent>; /** Emitted when the input value changes. */ inputChange: EventEmitter<InputEvent>; /** Emitted when the input gains focus. */ inputFocus: EventEmitter<FocusEvent>; componentDidRender(): void; componentWillLoad(): void; private getClasses; private handleBlur; private handleFocus; private handleInput; render(): any; }