-
-
Notifications
You must be signed in to change notification settings - Fork 282
/
Copy path_Outlined.svelte
55 lines (49 loc) · 1.46 KB
/
_Outlined.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<div class="columns margins">
<div>
<Textfield variant="outlined" bind:value={valueA} label="Label">
{#snippet helper()}
<HelperText>Helper Text</HelperText>
{/snippet}
</Textfield>
<pre class="status">Value: {valueA}</pre>
</div>
<div>
<Textfield variant="outlined" bind:value={valueB} label="Leading Icon">
{#snippet leadingIcon()}
<Icon class="material-icons">event</Icon>
{/snippet}
{#snippet helper()}
<HelperText>Helper Text</HelperText>
{/snippet}
</Textfield>
<pre class="status">Value: {valueB}</pre>
</div>
<div>
<Textfield variant="outlined" bind:value={valueC} label="Trailing Icon">
{#snippet trailingIcon()}
<Icon class="material-icons">delete</Icon>
{/snippet}
{#snippet helper()}
<HelperText>Helper Text</HelperText>
{/snippet}
</Textfield>
<pre class="status">Value: {valueC}</pre>
</div>
<div>
<Textfield variant="outlined" invalid bind:value={valueD} label="Invalid">
{#snippet helper()}
<HelperText>Helper Text</HelperText>
{/snippet}
</Textfield>
<pre class="status">Value: {valueD}</pre>
</div>
</div>
<script lang="ts">
import Textfield from '@smui/textfield';
import Icon from '@smui/textfield/icon';
import HelperText from '@smui/textfield/helper-text';
let valueA = $state('');
let valueB = $state('');
let valueC = $state('');
let valueD = $state('');
</script>