@kelvininc/ui-components
Version:
Kelvin UI Components
20 lines (19 loc) • 711 B
TypeScript
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;
}