From 6ca822fc8ad3a71d8212446e3ec7938edd50f932 Mon Sep 17 00:00:00 2001 From: Alfie Jones Date: Mon, 10 Jun 2024 17:31:51 +0100 Subject: [PATCH] saving tab in localstorage --- .../src/components/schema/tab.astro | 4 +- .../src/components/schema/tabs.astro | 47 +++++++++++++------ .../src/components/schema/tabs.markdoc.ts | 11 +++-- 3 files changed, 43 insertions(+), 19 deletions(-) diff --git a/apps/marketing-astro/src/components/schema/tab.astro b/apps/marketing-astro/src/components/schema/tab.astro index 0cf6b4c9..bbe7869f 100644 --- a/apps/marketing-astro/src/components/schema/tab.astro +++ b/apps/marketing-astro/src/components/schema/tab.astro @@ -5,15 +5,17 @@ interface Props { labeledByID: string; id: string; initial?: boolean; + label: string; } -const { labeledByID, id, initial } = Astro.props; +const { labeledByID, id, initial, label } = Astro.props; ---