diff --git a/src/components/Demo.astro b/src/components/Demo.astro new file mode 100644 index 00000000..6874ca93 --- /dev/null +++ b/src/components/Demo.astro @@ -0,0 +1,26 @@ +--- +interface Props { + image: string; + title: string; + type?: "boxed" | "simple"; +} + +const { image, title, type = "simple" } = Astro.props; +--- + +{type === "boxed" ? ( +
+ {title} + {title} +
+) : ( + {title} +)} \ No newline at end of file