File size: 320 Bytes
fee9c1e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
interface Props {
  title: string;
  description?: string;
}
const { title, description } = Astro.props as Props;
---
<section class="hero">
  <h1 class="hero-title">{title}</h1>
  <div class="hero-banner">
    <slot name="banner" />
    {description && <p class="hero-desc">{description}</p>}
  </div>
</section>