Skip to content

Commit 88b4ce8

Browse files
committed
docs: accordion page
1 parent 81dd8f4 commit 88b4ce8

File tree

6 files changed

+20
-6
lines changed

6 files changed

+20
-6
lines changed

src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
<script lang="ts">
22
import { RunesMetaTags, deepMerge } from 'runes-meta-tags';
33
import { Runatics } from 'runatics';
44
import { page } from '$app/stores';

src/routes/components/accordion/+page.svelte

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
<script lang="ts">
22
import { AccordionItem, Accordion } from '$lib';
33
import {
44
ChevronDoubleUpOutline,
@@ -19,6 +19,10 @@
1919
</script>
2020

2121
<H1>Accordion</H1>
22+
<H2>Setup</H2>
23+
24+
<HighlightCompo code={modules['./md/setup.md'] as string} />
25+
2226
<H2>Default accordion</H2>
2327
<CodeWrapper>
2428
<Accordion>
@@ -84,6 +88,8 @@
8488
</Accordion>
8589
</CodeWrapper>
8690

91+
<HighlightCompo code={modules['./md/default-accordion.md'] as string} />
92+
8793
<H2>Always open</H2>
8894
<CodeWrapper>TBD</CodeWrapper>
8995

@@ -114,6 +120,8 @@
114120
</Accordion>
115121
</CodeWrapper>
116122

123+
<HighlightCompo code={modules['./md/color-option.md'] as string} />
124+
117125
<H2>Flush accordion</H2>
118126
<CodeWrapper>
119127
<Accordion flush>
@@ -138,6 +146,8 @@
138146
</Accordion>
139147
</CodeWrapper>
140148

149+
<HighlightCompo code={modules['./md/flush-accordion.md'] as string} />
150+
141151
<H2>Arrow style</H2>
142152
<CodeWrapper>
143153
<Accordion>
@@ -174,6 +184,8 @@
174184
</Accordion>
175185
</CodeWrapper>
176186

187+
<HighlightCompo code={modules['./md/arrow-style.md'] as string} />
188+
177189
<H2>Icon Accordion</H2>
178190
<CodeWrapper>
179191
<Accordion>
@@ -215,6 +227,8 @@
215227
</Accordion>
216228
</CodeWrapper>
217229

230+
<HighlightCompo code={modules['./md/icon-accordion.md'] as string} />
231+
218232
<H2>Multiple mode</H2>
219233
<CodeWrapper>TBD</CodeWrapper>
220234

src/routes/utils/Footer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
<script lang="ts">
22
import { Footer, FooterBrand, FooterLi, FooterUl } from '$lib';
33
</script>
44

src/routes/utils/icons/Combinator.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
<script lang="ts">
22
let { small = false } = $props();
33
</script>
44

src/routes/utils/icons/Dev.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
<script lang="ts">
22
let { small = false } = $props();
33
</script>
44

src/routes/utils/icons/Reddit.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
<script lang="ts">
22
let { small = false } = $props();
33
</script>
44

0 commit comments

Comments
 (0)