-
-
Notifications
You must be signed in to change notification settings - Fork 284
/
_Manual.svelte
51 lines (43 loc) · 1.26 KB
/
_Manual.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
<div class="columns margins">
<div>
<Autocomplete
options={fruits}
bind:value={valueStandard}
bind:text={textStandard}
>
<Textfield label="Fruit" bind:value={textStandard} />
</Autocomplete>
<pre class="status">Selected: {valueStandard || ''}</pre>
</div>
<div>
<Autocomplete
options={fruits}
bind:value={valueFilled}
bind:text={textFilled}
>
<Textfield label="Fruit" bind:value={textFilled} variant="filled" />
</Autocomplete>
<pre class="status">Selected: {valueFilled || ''}</pre>
</div>
<div>
<Autocomplete
options={fruits}
bind:value={valueOutlined}
bind:text={textOutlined}
>
<Textfield label="Fruit" bind:value={textOutlined} variant="outlined" />
</Autocomplete>
<pre class="status">Selected: {valueOutlined || ''}</pre>
</div>
</div>
<script lang="ts">
import Autocomplete from '@smui-extra/autocomplete';
import Textfield from '@smui/textfield';
let fruits = ['Apple', 'Orange', 'Banana', 'Mango'];
let valueStandard: string | undefined = undefined;
let textStandard = '';
let valueFilled: string | undefined = undefined;
let textFilled = '';
let valueOutlined: string | undefined = undefined;
let textOutlined = '';
</script>