getIcon MethodStatic

Get JSX element that defines an icon. If iconSpec is a string, then a web-font icon class is used otherwise a ReactNode holding an SVG icon is assumed.

getIcon(iconSpec: ConditionalStringValue | ReactNode): undefined | ReactElement<any, string | JSXElementConstructor<any>>

Parameter Type Description
iconSpec ConditionalStringValue | ReactNode  

Returns - undefined | ReactElement<any, string | JSXElementConstructor<any>>

Defined in

Last Updated: 22 March, 2024