-
-
Notifications
You must be signed in to change notification settings - Fork 286
/
_Nested.svelte
38 lines (37 loc) · 1.02 KB
/
_Nested.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<div class="accordion-container">
<Accordion>
<Panel>
<Header>Panel 1</Header>
<Content>
<Accordion>
<Panel color="secondary">
<Header>Panel 1.1</Header>
<Content>The content for panel 1.1.</Content>
</Panel>
<Panel color="secondary">
<Header>Panel 1.2</Header>
<Content>The content for panel 1.2.</Content>
</Panel>
</Accordion>
</Content>
</Panel>
<Panel>
<Header>Panel 2</Header>
<Content>
<Accordion>
<Panel color="secondary">
<Header>Panel 2.1</Header>
<Content>The content for panel 2.1.</Content>
</Panel>
<Panel color="secondary">
<Header>Panel 2.2</Header>
<Content>The content for panel 2.2.</Content>
</Panel>
</Accordion>
</Content>
</Panel>
</Accordion>
</div>
<script lang="ts">
import Accordion, { Panel, Header, Content } from '@smui-extra/accordion';
</script>