diff options
Diffstat (limited to 'examples/blog/src/components/FollowMe.astro')
-rw-r--r-- | examples/blog/src/components/FollowMe.astro | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/blog/src/components/FollowMe.astro b/examples/blog/src/components/FollowMe.astro new file mode 100644 index 000000000..09062281a --- /dev/null +++ b/examples/blog/src/components/FollowMe.astro @@ -0,0 +1,11 @@ +--- +export interface Props { + username: string; + href: string; +} + +const { username, href } = Astro.props as Props; +--- + +<p>Follow me <a {href} target="_blank" rel="noreferrer">@{username}</a></p> + |