summaryrefslogtreecommitdiff
path: root/examples/with-mdx/src/components/Title.astro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-mdx/src/components/Title.astro')
-rw-r--r--examples/with-mdx/src/components/Title.astro7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/with-mdx/src/components/Title.astro b/examples/with-mdx/src/components/Title.astro
new file mode 100644
index 000000000..6d0dcb86c
--- /dev/null
+++ b/examples/with-mdx/src/components/Title.astro
@@ -0,0 +1,7 @@
+<h1><slot /></h1>
+
+<style>
+ h1 {
+ color: red;
+ }
+</style>