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

23 lines (22 loc) 818 B
import { DaisySize } from '../types'; export type TypographyVariant = 'body' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p'; export type TypographyWeight = 'light' | 'normal' | 'semibold' | 'bold'; /** * A customizable typography component used to render text with different sizes, variants, and weights. */ export declare class ModusWCTypography { private inheritedAttributes; /** Reference to the host element */ el: HTMLElement; /** Custom CSS class to apply to the typography element. */ customClass?: string; /** The size of the font. */ size?: DaisySize; /** The variant of the typography component. */ variant: TypographyVariant; /** The weight of the text. */ weight?: TypographyWeight; componentWillLoad(): void; private getClasses; render(): any; }