@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) • 807 B
TypeScript
import { ModusSize } from '../types';
/**
* A customizable badge component used to create badges with different sizes, types, and colors.
*
* The component supports a `<slot>` for injecting content within the badge.
*/
export declare class ModusWcBadge {
private inheritedAttributes;
/** Reference to the host element */
el: HTMLElement;
/** The color variant of the badge. */
color: 'primary' | 'secondary' | 'tertiary' | 'high-contrast' | 'success' | 'warning' | 'danger';
/** Custom CSS class to apply to the span element. */
customClass: string;
/** The size of the badge. */
size: ModusSize;
/** The variant of the badge. */
variant: 'counter' | 'filled' | 'outlined' | 'text';
componentWillLoad(): void;
private getClasses;
render(): any;
}