AlertProps
type AlertProps = { children: React.ReactNode; icon?: CasperIconComponent; iconVerticalAlign?: "auto" | "flex-start" | "start" | "flex-end" | "end" | "center" | "baseline" | "stretch"; onClose?: () => void; title?: string; type: AlertType;} & AlertThemeStyleProps;Type Declaration
Section titled “Type Declaration”| Name | Type | Description |
|---|---|---|
children |
React.ReactNode |
- |
icon? |
CasperIconComponent |
Icon for Alert. Defaults to a fallback icon based on type. |
iconVerticalAlign? |
| "auto" | "flex-start" | "start" | "flex-end" | "end" | "center" | "baseline" | "stretch" |
Optional alignSelf for icon Alert. |
onClose()? |
() => void |
Callback for a close button that appears to top right of Alert when provided. |
title? |
string |
Optional title for Alert. |
type |
AlertType |
Visual type of Alert. |