Skip to content

Commit

Permalink
fix action slot attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
woylie committed Nov 26, 2023
1 parent 7b88b74 commit 52b2bf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/doggo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,10 @@ defmodule Doggo do
that toggles a drawer, or for a back link.
"""

slot :action, doc: "Slot for action buttons right of the title."
slot :action, doc: "Slot for action buttons right of the title." do
attr :label, :string, required: true
attr :on_click, JS, required: true
end

def app_bar(assigns) do
~H"""
Expand Down

0 comments on commit 52b2bf3

Please sign in to comment.