summaryrefslogtreecommitdiff
path: root/examples/blog/src/components/Author.astro
blob: 87cb48c451ea9c9b472bb3265c100d07036ef7fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
export interface Props {
  name: string;
  href: string;
}

const { name, href } = Astro.props;
---
<style>
  .author {
    margin-bottom: 0.75rem;
  }
</style>
<div class="author">
  <p><a href={href}>{name}</a></p>
</div>