aboutsummaryrefslogtreecommitdiff
path: root/examples/docs/src/components/RightSidebar/RightSidebar.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/docs/src/components/RightSidebar/RightSidebar.astro')
-rw-r--r--examples/docs/src/components/RightSidebar/RightSidebar.astro11
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/docs/src/components/RightSidebar/RightSidebar.astro b/examples/docs/src/components/RightSidebar/RightSidebar.astro
index 6144ed928..d45fbd494 100644
--- a/examples/docs/src/components/RightSidebar/RightSidebar.astro
+++ b/examples/docs/src/components/RightSidebar/RightSidebar.astro
@@ -1,12 +1,19 @@
---
import TableOfContents from './TableOfContents';
import MoreMenu from './MoreMenu.astro';
-const { headings, githubEditUrl } = Astro.props;
+import type { MarkdownHeading } from 'astro';
+
+type Props = {
+ headings: MarkdownHeading[];
+ githubEditUrl: string;
+};
+
+const { headings, githubEditUrl } = Astro.props as Props;
---
<nav class="sidebar-nav" aria-labelledby="grid-right">
<div class="sidebar-nav-inner">
- <TableOfContents client:media="(min-width: 50em)" {headings} />
+ <TableOfContents client:media="(min-width: 50em)" headings={headings} />
<MoreMenu editHref={githubEditUrl} />
</div>
</nav>