mirror of
https://github.com/Xevion/undefined.behavio.rs.git
synced 2025-12-07 05:16:57 -06:00
Allow header text to be customizable
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
---
|
||||
interface Props {
|
||||
className?: string | null;
|
||||
children?: string | null;
|
||||
}
|
||||
const { className } = Astro.props;
|
||||
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;">undefined behaviors</span>
|
||||
<span style="--index: 1;">undefined behaviors</span>
|
||||
<span style="--index: 2;">undefined behaviors</span>
|
||||
<span style="--index: 0;">{text}</span>
|
||||
<span style="--index: 1;">{text}</span>
|
||||
<span style="--index: 2;">{text}</span>
|
||||
</div>
|
||||
</header>
|
||||
Reference in New Issue
Block a user