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: string | React.ReactNode): Element | undefined

Parameter Type Description
iconSpec string | React.ReactNode  

Returns - Element | undefined

Defined in

Last Updated: 13 June, 2024