Ex_iconify - Phoenix helpers for using 100,000+ iconify SVG icons

I’ve recently put this together. Giving access to 100,000+ icons from 100+ icon sets from https://iconify.design

Open to any feedback!

9 Likes

It is now published: iconify_ex | Hex

7 Likes

Latest versions have added multiple mode for including the icons in a Phoenix view or component: CSS, img, sprites, or inline as a component.

Docs have also been improved: Iconify — iconify_ex v0.4.7

iconify_ex copies only the icons you use from iconify into your project, preparing them on-the-fly when you first use an icon in a view or component, either at compile time if using the Surface using a built-in macro component, or on the first run during development (sidenote: what approach could we use to achieve the same with simple Phoenix Components?).

There is also now an optional integration with phoenix_live_favicon so you can set an icon (or emoji) as favicon on a page with Iconify.maybe_set_favicon(socket, icon_name)

3 Likes

This should be the default library for Phoenix!! :purple_heart:

1 Like