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
end

Naming 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:

NameCategoryModule Name
dockerlogosLogosDocker
copy-altregularRegularCopyAlt
quote-singleSolidSolidQuoteSingle

Installation

Add boxicons to your dependencies in your mix.exs file

def deps do
  [
    {:surface_boxicon, "~> 0.2.0"}
  ]
end

Then run

mix deps.get

and that's pretty much it.