From 8a43baba9eae3d5259e8c3382a10f6ae01a9f963 Mon Sep 17 00:00:00 2001 From: Nicolai Rosdahl Tellefsen Date: Wed, 16 Oct 2024 21:21:23 +0200 Subject: [PATCH] chore: add class property to h2 component --- src/components/H2.astro | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/H2.astro b/src/components/H2.astro index ff2bd6f..6be5d97 100644 --- a/src/components/H2.astro +++ b/src/components/H2.astro @@ -2,8 +2,9 @@ type Props = { text: string; color?: string; + class?: string; }; -const { text, color = "text-white" } = Astro.props; +const { text, color = "text-white", class: classNames = "" } = Astro.props; --- -

{text}

+

{text}