From ce9adc759255ebd7e05d30368cda9370ae70d8f0 Mon Sep 17 00:00:00 2001 From: Mathias Polligkeit Date: Sun, 26 Nov 2023 14:23:30 +0900 Subject: [PATCH] fix attributes for navigation slot --- lib/doggo.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/doggo.ex b/lib/doggo.ex index 6676b9c9..c41da32a 100644 --- a/lib/doggo.ex +++ b/lib/doggo.ex @@ -87,7 +87,10 @@ defmodule Doggo do doc: """ Slot for a single button left of the title, typically used for a menu button that toggles a drawer, or for a back link. - """ + """ do + attr :label, :string, required: true + attr :on_click, JS, required: true + end slot :action, doc: "Slot for action buttons right of the title." do attr :label, :string, required: true