# Hero

Drop `Hero` at the top of a marketing page. It's self-contained, fills the available width, and ships with sensible defaults so it renders out of the box — override any prop to customize it.

```svelte
<script lang="ts">
  import Hero from "$lib/components/hero/hero.svelte";
</script>

<Hero
  announcement="New: v2.0 is here"
  title="Build your design system faster"
  description="A shadcn-svelte based component registry, ready to install into any project."
  primaryCta={{ label: "Get Started", href: "/docs/installation" }}
  secondaryCta={{ label: "Browse components", href: "/components" }}
  images={[{ src: "/hero-1.jpg" }, { src: "/hero-2.jpg" }, { src: "/hero-3.jpg" }, { src: "/hero-4.jpg" }, { src: "/hero-5.jpg" }]}
/>
```

## Props

| Prop           | Type                            | Default                              |
| -------------- | -------------------------------- | ------------------------------------- |
| `class`        | `string`                        | —                                      |
| `announcement` | `string`                        | — (badge hidden when omitted)         |
| `title`        | `string`                        | `"We're changing the way people connect"` |
| `description`  | `string`                        | lorem ipsum copy                      |
| `primaryCta`   | `{ label: string; href: string }` | `{ label: "Get started", href: "#" }` |
| `secondaryCta` | `{ label: string; href: string }` | `{ label: "Live demo", href: "#" }`   |
| `images`       | `{ src: string; alt?: string }[]` | 5 stock photos                        |