Boxicon
Boxicon is surface component library that wraps the amazing boxicons library.
Usage
defmodule MyComponent do
use Surface.Component
alias Boxicon.SolidVideoPlus
@impl true
def render(assigns) do
~F"""
<SolidVideoPlus size="64" class="icon green"/>
"""
end
endNaming convention
If you already know the name of the icon you want, infering the module's name should be no problem.
Here are a few examples:
| Name | Category | Module Name |
|---|---|---|
| docker | logos | LogosDocker |
| copy-alt | regular | RegularCopyAlt |
| quote-single | Solid | SolidQuoteSingle |
Installation
Add boxicons to your dependencies in your mix.exs file
def deps do
[
{:surface_boxicon, "~> 0.3.0"}
]
endThen run
mix deps.getand that's pretty much it.