add attrs to tag card
This commit is contained in:
parent
175eef95fb
commit
e2a4dc4b92
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user