UNPKG

@trellixio/roaster-coffee

Version:
15 lines 732 B
import * as React from 'react'; /** This type defines the different levels of alerts that can be displayed */ export declare type AlertLevel = 'info' | 'success' | 'warning' | 'error'; export interface AlertProps { /** The content of the alert message */ message: React.ReactNode; /** The level of the alert ('info', 'success', 'warning', 'error') */ level?: AlertLevel; /** Called when the alert is closed */ onClose?(): void; /** Whether the alert can be closed (When false | undefined the close button will not be displayed) */ closable?: boolean; } export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>; //# sourceMappingURL=Alert.d.ts.map