summaryrefslogtreecommitdiff
path: root/examples/blog/src/components/Nav.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blog/src/components/Nav.astro')
-rw-r--r--examples/blog/src/components/Nav.astro7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/blog/src/components/Nav.astro b/examples/blog/src/components/Nav.astro
index 5c435b737..a7ef0985f 100644
--- a/examples/blog/src/components/Nav.astro
+++ b/examples/blog/src/components/Nav.astro
@@ -1,5 +1,8 @@
---
-export let title;
+export interface Props {
+ title: string;
+}
+const { title } = Astro.props;
---
<style lang="scss">
@@ -57,4 +60,4 @@ a {
<li><a href="/author/sancho">Author: Sancho</a></li>
<li><a href="/about">About</a></li>
</ul>
-</nav> \ No newline at end of file
+</nav>