ExIcon - Generic icon library for Phoenix LiveView

I published yet another icon library for Phoenix LiveView today.

Features

  • Downloads icon sets and generates Phoenix LiveView function components.
  • Extensible via behaviour to support multiple icon libraries.
  • Icon library versions are set via configuration. Update your icons without updating this library.
  • Generate components for all icons or only the ones you need.
  • Dev-only dependency. The library is only used for generating icon modules.

Providers

  • Lucide
  • Simple Icons

Future

I implemented just as much as I needed. If you would like to see a feature or support for other icon sets, please open an issue on Github.

Links

https://github.com/woylie/ex_icon

6 Likes

0.3.0 adds a Simple Icons provider.

1 Like

I just released version 1.0.0. Stable and feature-complete.

  • Download icon sets or read them from a local folder.
  • Generate Phoenix LiveView components.
  • Selectively only generate the icon components you need.
  • Dev dependency.
  • Sanitizes SVG before generating components.
  • Built-in support for Heroicons, Lucide Icons, and Simple Icons.
  • Extensible via behaviour that asks for the release URL and the path to the icon folder within the release.
  • Support for multiple variants within the same icon set.
  • Flexible configuration for Phoenix.Component attributes and fixed attributes.
  • Upgrade your icon set version without requiring a library version update.
2 Likes