@@ -12,7 +12,7 @@ import {
12
12
<Meta title =" Elements/Select" />
13
13
14
14
<Story name =" Basic" >
15
- <Select >
15
+ <Select cx = " max-w-[200px] " >
16
16
<option >Option 1</option >
17
17
<option >Option 2</option >
18
18
<option >Option 3</option >
@@ -26,16 +26,17 @@ import {
26
26
27
27
<Story name =" Searchable" >
28
28
<Label cx =" h-[200px]" >
29
- Searchable select with limited options
29
+ Searchable select
30
30
<SearchableSelect
31
31
slot =" input"
32
+ cx =" max-w-[200px]"
32
33
placeholder =" Search options"
33
34
options ={[
34
- ' First Option ' ,
35
- ' Option 2 ' ,
36
- ' C.) Option ' ,
37
- ' Something Else ' ,
38
- ' With A Whole Lot Of Parts ' ,
35
+ ' First option ' ,
36
+ ' Second option ' ,
37
+ ' Third option ' ,
38
+ ' Something else ' ,
39
+ ' With a whole lot of parts ' ,
39
40
]}
40
41
exclusive
41
42
/>
@@ -44,10 +45,11 @@ import {
44
45
45
46
<Story name =" Searchable with arbitrary text" >
46
47
<Label cx =" h-[200px]" >
47
- Select with arbitrary text
48
+ Searchable select with create
48
49
<SearchableSelect
49
50
slot =" input"
50
- placeholder =" Search lyrics or invent your own"
51
+ cx =" max-w-[200px]"
52
+ placeholder =" Type to find or create..."
51
53
otherOptionPrefix =" Other:"
52
54
options ={[' Hello' , ' From' , ' The other side' ]}
53
55
sort ={SortOptions .REDUCE }
@@ -56,15 +58,18 @@ import {
56
58
</Story >
57
59
58
60
<Story name =" Multi" >
59
- <div class =" h-[200px]" >
61
+ <Label cx =" h-[200px]" >
62
+ Select multiple objects
60
63
<Multiselect
64
+ slot =" input"
65
+ cx =" max-w-[300px]"
61
66
options ={[
62
- ' First Option ' ,
63
- ' Option 2 ' ,
64
- ' C.) Option ' ,
65
- ' Something Else ' ,
66
- ' With A Whole Lot Of Parts ' ,
67
+ ' First option ' ,
68
+ ' Second option ' ,
69
+ ' Third option ' ,
70
+ ' Something else ' ,
71
+ ' With a whole lot of parts ' ,
67
72
]}
68
73
/>
69
- </div >
74
+ </Label >
70
75
</Story >
0 commit comments