Skip to content

Commit da2d137

Browse files
committed
Merge branch 'drmule-patch-2'
2 parents 6164525 + c30c12e commit da2d137

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

packages/site/src/routes/demo/tabs/_Simple.svelte

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,41 @@
99
</Tab>
1010
</TabBar>
1111

12+
{#if active === 'Home'}
13+
<Paper variant="unelevated">
14+
<Content>Welcome to the Home page! I hope you like SMUI!</Content>
15+
</Paper>
16+
{:else if active === 'Merchandise'}
17+
<Paper variant="unelevated">
18+
<Content>
19+
You want merch? We got so much cool merch! We got SMUI toilet paper,
20+
SMUI ironing boards, SMUI gas pedals! Come and get 'em!
21+
</Content>
22+
</Paper>
23+
{:else if active === 'About Us'}
24+
<Paper variant="unelevated">
25+
<Content>
26+
We are a boutique UI library, ready to get you up and running on
27+
whatever your project is. Whether you're building a web UI for an
28+
automated toaster or a web UI for an automated coffee maker, SMUI is
29+
ready for you!
30+
</Content>
31+
</Paper>
32+
{/if}
33+
1234
<div style="margin-top: 1em;">
1335
<div>Programmatically select:</div>
1436
{#each ['Home', 'Merchandise', 'About Us'] as tab}
1537
<Button on:click={() => (active = tab)}><Label>{tab}</Label></Button>
1638
{/each}
1739
</div>
18-
19-
<pre class="status">Selected: {active}</pre>
2040
</div>
2141

2242
<script lang="ts">
2343
import Tab, { Label } from '@smui/tab';
2444
import TabBar from '@smui/tab-bar';
2545
import Button from '@smui/button';
46+
import Paper, { Content } from '@smui/paper';
2647
2748
let active = 'Home';
2849
</script>

0 commit comments

Comments
 (0)