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 (27 loc) 950 B
import { EventEmitter } from '../../stencil-public-runtime'; import { ModusSize, Orientation } from '../types'; /** * A customizable menu component used to display a list of li elements vertically or horizontally. * * The component supports a `<slot>` for injecting custom li elements inside the ul */ export declare class ModusWcMenu { private inheritedAttributes; /** Reference to the host element */ el: HTMLElement; /** Indicates that the menu should have a border. */ bordered?: boolean; /** Custom CSS class to apply to the ul element. */ customClass?: string; /** The orientation of the menu. */ orientation?: Orientation; /** The size of the menu. */ size?: ModusSize; /** Event emitted when the menu loses focus. */ menuFocusout: EventEmitter<FocusEvent>; componentWillLoad(): void; private getClasses; private handleFocusout; private getMenuRole; render(): any; }