forked from shibao/cannery
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
|
use CanneryWeb, :component
|
||||||
|
alias Cannery.Tags.Tag
|
||||||
|
|
||||||
|
attr :tag, Tag, required: true
|
||||||
|
slot(:inner_block, required: true)
|
||||||
|
|
||||||
def tag_card(assigns) do
|
def tag_card(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
@ -19,6 +23,8 @@ defmodule CanneryWeb.Components.TagCard do
|
|||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
attr :tag, Tag, required: true
|
||||||
|
|
||||||
def simple_tag_card(assigns) do
|
def simple_tag_card(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<h1
|
<h1
|
||||||
|
Loading…
Reference in New Issue
Block a user