Alert

Alert is a component used to display important messages or notifications to the user. It can be customized with different types, icons, and actions.

Default

Extra

Show Details

APIs

Alert

PropertyDescriptionTypeDefault
bannerWhether to show as bannerbooleanfalse
classNamesCustom class names for Alert components{ alert?: string; container?: string }-
closableWhether Alert can be closedbooleanfalse
closeIconCustom close iconReactNode-
colorfulTextWhether to use colorful text based on alert typebooleantrue
descriptionAdditional description textReactNode-
extraAdditional content below the AlertReactNode-
extraDefaultExpandWhether to expand extra content by defaultbooleanfalse
extraIsolateWhether to show extra content separatelybooleanfalse
glassApply glass effect to Alert backgroundbooleanfalse
iconCustom icon componentIconProps['icon']-
iconPropsProperties for the icon componentOmit<IconProps, 'icon'>-
messageContent of AlertReactNode-
showIconWhether to show iconbooleantrue
textCustomization options for text{ detail?: string }-
typeType of Alert'success' | 'info' | 'warning' | 'error''info'
variantStyle variant of Alert'filled' | 'outlined' | 'borderless''filled'