Interface AlertComponentOptions

interface AlertComponentOptions {
    visible: boolean;
    message: string;
    type?: "danger" | "success";
    duration?: number;
    onHide?: (() => void);
    textColor?: string;
    overlayProps?: HTMLAttributes<HTMLDivElement>;
    containerProps?: HTMLAttributes<HTMLDivElement>;
    messageProps?: HTMLAttributes<HTMLParagraphElement>;
    renderMessage?: ((options: {
        defaultMessage: ReactNode;
    }) => ReactNode);
    renderContent?: ((options: {
        defaultContent: ReactNode;
    }) => ReactNode);
}

Properties

visible: boolean
message: string
type?: "danger" | "success"
duration?: number
onHide?: (() => void)
textColor?: string
overlayProps?: HTMLAttributes<HTMLDivElement>
containerProps?: HTMLAttributes<HTMLDivElement>
messageProps?: HTMLAttributes<HTMLParagraphElement>
renderMessage?: ((options: {
    defaultMessage: ReactNode;
}) => ReactNode)
renderContent?: ((options: {
    defaultContent: ReactNode;
}) => ReactNode)