UNPKG

@kelvininc/ui-components

Version:
20 lines (19 loc) 711 B
import { EComponentSize } from '../../types'; export declare enum EAlertType { Info = "info", Error = "error", Success = "success", Warning = "warning" } export interface IAlertConfig { /** (required) Defines the type of alert to show, possible values are defined in `EAlertType` */ type: EAlertType; /** (optional) Defines the size of the component, defaults to EComponentType.Large */ size?: EComponentSize; /** (optional) Defines if the icon should be shown, defaults to `true` */ showIcon?: boolean; /** (required) Defines the label (title) text to show */ label: string; /** (optional) Defines the description text to show */ description?: string; }