From 4351e40fad5976b3500ccbc50bc1c324c5f3644c Mon Sep 17 00:00:00 2001 From: inhji Date: Wed, 5 Jul 2023 16:49:55 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Elib/chiya=5Fweb/components/public=5Fco?= =?UTF-8?q?mponents.ex=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/chiya_web/components/public_components.ex | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/chiya_web/components/public_components.ex b/lib/chiya_web/components/public_components.ex index 0f2461a..8c76c0b 100644 --- a/lib/chiya_web/components/public_components.ex +++ b/lib/chiya_web/components/public_components.ex @@ -69,6 +69,8 @@ defmodule ChiyaWeb.PublicComponents do Renders a note-header with title. """ attr :class, :string, default: nil + attr :titleclass, :string, default: nil + attr :subtitleclass, :string, default: nil slot :title, required: true slot :subtitle @@ -76,10 +78,10 @@ defmodule ChiyaWeb.PublicComponents do def header(assigns) do ~H"""
-

+

<%= render_slot(@title) %>

-

+

<%= render_slot(@subtitle) %>