add attrs to tag card

This commit is contained in:
shibao 2022-11-09 21:15:28 -05:00
parent 175eef95fb
commit e2a4dc4b92

View File

@ -4,6 +4,10 @@ defmodule CanneryWeb.Components.TagCard do
"""
use CanneryWeb, :component
alias Cannery.Tags.Tag
attr :tag, Tag, required: true
slot(:inner_block, required: true)
def tag_card(assigns) do
~H"""
@ -19,6 +23,8 @@ defmodule CanneryWeb.Components.TagCard do
"""
end
attr :tag, Tag, required: true
def simple_tag_card(assigns) do
~H"""
<h1