diff --git a/src/components/WindowBox.astro b/src/components/WindowBox.astro new file mode 100644 index 0000000..7a2b383 --- /dev/null +++ b/src/components/WindowBox.astro @@ -0,0 +1,84 @@ +--- +interface Props { + as?: any; + titlebar?: { + title: string; + heading: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; + }; + link?: string; + padding?: "none" | "normal"; + fill?: boolean; +} + +const { + titlebar, + link, + padding = "normal", + fill, + as: Heading = titlebar?.heading, +} = Astro.props; +--- + +