Props - Astro

Component

The answer is 42

Source Code

---
interface Props {
  answer?: string
}

const { answer = "a mystery" } = Astro.props
---

<p>The answer is {answer}</p>