Expose a dictionary from name to an icon
tad-lispy opened this issue · comments
It would be nice to have a way of getting an icon dynamically (e.g. from the user input). Perhaps the module could expose a dictionary of String
to Icon
, to be used like this:
Dict.get "activity" FeatherIcons.icons
My use case is parsing and rendering an Elm Markup document loaded via HTTP. Inside I have a custom element called icon
that takes a name parameter:
Look { icon | arrow-up }, it's up there!
I'd like to provide a dictionary of icons to the parse
function, so it would be easy to select the icons I need and add custom ones.