@scania/tegel
Version:
Tegel Design System
23 lines (22 loc) • 1.04 kB
TypeScript
/**
* @slot <default> - <b>Unnamed slot.</b> For the extended message. Not visible on minimal messages.
*/
export declare class TdsMessage {
/** Header text for the component. */
header?: string;
/** Variant of the component, based on current mode. */
modeVariant: 'primary' | 'secondary' | null;
/** Variant of Message. */
variant: 'information' | 'error' | 'warning' | 'success';
/** Removes the icon in the Message. */
noIcon: boolean;
/** Minimal Message styling. */
minimal: boolean;
/** Role of the message component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages. */
tdsAlertDialog: 'alertdialog' | 'dialog';
/** Provides an accessible name for the message component when no header is present. This ensures proper screen reader support for dialog/alertdialog roles. */
tdsAriaLabel?: string;
getIconName: () => "info" | "error" | "tick" | "warning";
private getAriaLabel;
render(): any;
}