From 7bc438954c5b728be4954710f9c7937664c80a02 Mon Sep 17 00:00:00 2001 From: Mathias Polligkeit Date: Mon, 27 Nov 2023 12:28:00 +0900 Subject: [PATCH] make app bar title optional --- lib/doggo.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/doggo.ex b/lib/doggo.ex index c41da32a..f79ad20e 100644 --- a/lib/doggo.ex +++ b/lib/doggo.ex @@ -74,7 +74,7 @@ defmodule Doggo do @doc type: :component attr :title, :string, - required: true, + default: nil, doc: "The page title. Will be set as `h1`." attr :class, :any, @@ -109,7 +109,7 @@ defmodule Doggo do <%= render_slot(navigation) %> -

<%= @title %>

+

<%= @title %>

<.link :for={action <- @action}