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: ConditionalStringValue | ReactNode): undefined | Element Parameter Type Description iconSpec ConditionalStringValue | ReactNode Returns - undefined | Element Defined in ui/framework/src/ui-framework/utils/PropsHelper.tsx Line 44 Last Updated: 11 June, 2024