comfycamp/lib/comfycamp_web/components/icons.ex

17 lines
282 B
Elixir

defmodule ComfycampWeb.Icons do
@moduledoc """
Provides reusable svg icons.
"""
use Phoenix.Component
embed_templates "icons/*"
attr :name, :string, default: nil
attr :class, :string, default: nil
def icon(assigns) do
~H"""
Missing icon
"""
end
end