summaryrefslogtreecommitdiff
path: root/examples/component/src/MyComponent.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/component/src/MyComponent.astro')
-rw-r--r--examples/component/src/MyComponent.astro8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/component/src/MyComponent.astro b/examples/component/src/MyComponent.astro
new file mode 100644
index 000000000..2a3ebcea5
--- /dev/null
+++ b/examples/component/src/MyComponent.astro
@@ -0,0 +1,8 @@
+---
+// Write your component code in this file!
+interface Props {
+ prefix?: string;
+}
+---
+
+<div>{Astro.props.prefix} My special component</div>