UNPKG

@stihl-design-system/components

Version:

Welcome to the STIHL Design System react component library.

28 lines (27 loc) 850 B
import { IconName } from '../../types'; export declare const TOAST_VARIANT: readonly ["info", "success", "warning"]; export type ToastVariant = (typeof TOAST_VARIANT)[number]; export declare const TOAST_ICONS: Record<ToastVariant, IconName>; export type ToastOptions = { /** `data-*`: Custom data attributes. */ [key: `data-${string}`]: string | undefined; /** Visual style variant of the Toast. * @default 'info' */ variant?: ToastVariant; /** Hides the icon of the Toast. * @default false */ hideIcon?: boolean; /** Close button props: * * `data-*`: Custom data attributes. * * `label`: Accessibility label for the close button. * (default) 'Close toast' */ closeButtonProps?: { [key: `data-${string}`]: string | undefined; label?: string; }; };