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 | React.ReactNode): undefined | React.ReactElement<any, string | React.JSXElementConstructor<any>>

Parameter Type Description
iconSpec ConditionalStringValue | React.ReactNode  

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

Defined in

Last Updated: 20 November, 2024