getIcon MethodStatic
Returns the React icon corresponding to the MessageSeverity.
getIcon(severity: MessageSeverity, hollow?: boolean): IconSpec
@returns IconSpec
| Parameter | Type | Description | 
|---|---|---|
| severity | MessageSeverity | MessageSeverity | 
| hollow | boolean | set to true to return the hollow form of the icon. | 
Returns - IconSpec
IconSpec
Defined in
Last Updated: 24 June, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.