Simpleicons
View SourceBased on ex_heroicons
This package adds a convenient way of using Simpleicons with your Phoenix, Phoenix LiveView and Surface applications.
Installation
Add ex_simpleicons
and simpleicons
to the list of dependencies in mix.exs
:
def deps do
[
{:ex_simpleicons, "~> 0.2.0"},
{:simpleicons,
github: "simple-icons/simple-icons",
tag: "14.14.0",
sparse: "icons",
app: false,
compile: false,
depth: 1}
]
end
Then run mix deps.get
.
Usage
<Simpleicons.icon name="github" class="simpleicon" />
License
MIT. See LICENSE for more details.