Files
undefined.behavio.rs/src/components/Header.astro

16 lines
495 B
Plaintext

---
interface Props {
className?: string | null;
children?: string | null;
}
const { className, children: propText } = Astro.props;
console.log(Astro.props);
const text = propText ?? "undefined behaviors";
---
<header class:list={["text-5xl text-center lowercase", className]}>
<div class="stack" style="--stacks: 3;">
<span style="--index: 0;">{text}</span>
<span style="--index: 1;">{text}</span>
<span style="--index: 2;">{text}</span>
</div>
</header>