Add simple icons (#564)

This commit is contained in:
Kieran
2025-01-14 12:53:35 -08:00
committed by GitHub
parent 40cde43be1
commit ca90da49f5
12 changed files with 109 additions and 260 deletions
@@ -700,7 +700,7 @@ defmodule PinchflatWeb.CoreComponents do
attr :class, :string, default: nil
attr :rest, :global
def icon(%{name: "hero-" <> _} = assigns) do
def icon(assigns) do
~H"""
<span class={[@name, @class]} {@rest} />
"""