@sitecore/sc-contenthub-blok
Version:
A UI library for [Sitecore Content Hub](https://doc.sitecore.com/ch/).
30 lines (29 loc) • 789 B
TypeScript
import { type FC, PropsWithChildren, ReactElement } from "react";
import { type AlertColor } from "../CoreComponents";
declare module "@mui/material/Alert" {
interface AlertPropsColorOverrides {
neutral: true;
ai: true;
}
}
export declare const alertIconMap: {
error: string;
info: string;
warning: string;
success: string;
neutral: string;
ai: string;
};
export interface BlokAlertProps {
alertTitle?: string | ReactElement;
onClose?: () => void;
className?: string;
dismissible?: boolean;
isCollapsible?: boolean;
isCollapsed?: boolean;
closeMessage?: string;
toggleMessage?: string;
severity?: AlertColor;
iconName?: string;
}
export declare const BlokAlert: FC<PropsWithChildren<BlokAlertProps>>;