File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed
packages/site/src/routes/demo/tabs Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change 9
9
</Tab >
10
10
</TabBar >
11
11
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
+
12
34
<div style =" margin-top: 1em;" >
13
35
<div >Programmatically select:</div >
14
36
{#each [' Home' , ' Merchandise' , ' About Us' ] as tab }
15
37
<Button on:click ={() => (active = tab )}><Label >{tab }</Label ></Button >
16
38
{/each }
17
39
</div >
18
-
19
- <pre class ="status" >Selected: {active }</pre >
20
40
</div >
21
41
22
42
<script lang =" ts" >
23
43
import Tab , { Label } from ' @smui/tab' ;
24
44
import TabBar from ' @smui/tab-bar' ;
25
45
import Button from ' @smui/button' ;
46
+ import Paper , { Content } from ' @smui/paper' ;
26
47
27
48
let active = ' Home' ;
28
49
</script >
You can’t perform that action at this time.
0 commit comments