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

Allow Dynamic Import of Icon

Open egucciar opened this issue 2 years ago • 2 comments

Hello, would love to have the capability to dynamically import individual icons from the react-icons package. Due to the output structure, this is not possible today.

egucciar avatar Sep 27 '23 20:09 egucciar

can you provide more context please ? it is possible to dynamically import individual icons via import(), there are though known issues with webpack chunking if you hit 2 icons from different chunks.

I assume this will get you what you want ? https://github.com/microsoft/fluentui-system-icons/pull/888

Hotell avatar Sep 29 '25 12:09 Hotell

This issue is 2 years old and can't really remember what it was needed for anymore. If i recall correctly, the package at the time would not be able to use dynamic import. Perhaps that is no longer an issue.

egucciar avatar Sep 29 '25 19:09 egucciar