aboutsummaryrefslogtreecommitdiff
path: root/src/routes/RubySquareYear.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/RubySquareYear.svelte')
-rw-r--r--src/routes/RubySquareYear.svelte7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/routes/RubySquareYear.svelte b/src/routes/RubySquareYear.svelte
new file mode 100644
index 0000000..53500bf
--- /dev/null
+++ b/src/routes/RubySquareYear.svelte
@@ -0,0 +1,7 @@
+<script lang="ts">
+ import Square from "./Square.svelte";
+
+ let { sqrt }: { sqrt: number } = $props();
+</script>
+
+<ruby>{sqrt ** 2}<rp> (</rp><rt>{sqrt}<Square /></rt><rp>)</rp></ruby>