diff --git a/src/components/NavBox.astro b/src/components/NavBox.astro index 9cf0b9f..9902e9b 100644 --- a/src/components/NavBox.astro +++ b/src/components/NavBox.astro @@ -5,7 +5,7 @@ import NavItem from "./NavItem.astro"; diff --git a/src/components/NavItem.astro b/src/components/NavItem.astro index 3dbe07b..9a3f7a8 100644 --- a/src/components/NavItem.astro +++ b/src/components/NavItem.astro @@ -2,14 +2,20 @@ export interface Props { href: string; disabled?: boolean; + spacer?: boolean; } -const { href, disabled } = Astro.props; +const { href, disabled, spacer } = Astro.props; const enabled = !disabled; + +let classes = []; +if (spacer) { + classes.push("mb-4"); +} --- -