API Reference > ui-framework > Utilities > PropsHelper > getIcon 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 ui/framework/src/ui-framework/utils/PropsHelper.tsx Line 43 Last Updated: 13 June, 2024