From 42dd4ccbcfde1841528aaec60fe3fa86a4723ce7 Mon Sep 17 00:00:00 2001 From: HiDeoo <494699+HiDeoo@users.noreply.github.com> Date: Sat, 2 Sep 2023 16:23:02 +0200 Subject: [PATCH 01/24] feat: synced tabs --- packages/starlight/user-components/Tabs.astro | 38 +++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/packages/starlight/user-components/Tabs.astro b/packages/starlight/user-components/Tabs.astro index 82b3af179dd..62fa0983537 100644 --- a/packages/starlight/user-components/Tabs.astro +++ b/packages/starlight/user-components/Tabs.astro @@ -1,11 +1,16 @@ --- import { processPanels } from './rehype-tabs'; +interface Props { + syncKey: string; +} + +const { syncKey } = Astro.props; const panelHtml = await Astro.slots.render('default'); const { html, panels } = processPanels(panelHtml); --- - + { panels && (
@@ -70,14 +75,25 @@ const { html, panels } = processPanels(panelHtml);