fluentui-system-icons icon indicating copy to clipboard operation
fluentui-system-icons copied to clipboard

Is there a utility like `getIconClassName` that would works for system icons to render Icons in Preact?

Open leddie24 opened this issue 9 months ago • 1 comments

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?

leddie24 avatar Mar 14 '25 23:03 leddie24

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.

Hotell avatar Sep 29 '25 13:09 Hotell