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

26 lines (25 loc) 977 B
export type ToastPosition = 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end'; /** * A customizable toast component used to stack elements, positioned on the corner of a page. * * The component supports a `<slot>` for injecting additional custom content inside the toast. */ export declare class ModusWcToast { private inheritedAttributes; /** Reference to the host element */ el: HTMLElement; /** Additional classes for custom styling. */ customClass?: string; /** Time taken to dismiss the toast in milliseconds */ delay?: number; /** The position of the toast in the parent container. */ position?: ToastPosition; componentWillLoad(): void; private getClasses; private timerId; delayChanged(newDelay: number): void; dismissElement(): void; componentDidLoad(): void; disconnectedCallback(): void; render(): any; }