fluentui-system-icons
fluentui-system-icons copied to clipboard
Is there a utility like `getIconClassName` that would works for system icons to render Icons in Preact?
I'm integrating these system icons in a Preact application. Is there a workaround to use the getIconClassName or something to work for these system icons, so that I can either grab the classname or whatever content is helpful, and then render the icon in an <i> element in Preact instead?
you need to use preact/compat
if you wanna re-create icons wrappers on your own you can leverage our infra and tweak the generators in your project to output Preact components.