You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* swap node for deno
* migrate to deno reusable GH workflows
* fix .github/workflows/test.yml, add explicit width example for #255 on /ui page
* fix maxSelect playwright test
|`options`| What users can choose from | Array of strings, numbers, or objects with `label` property |
74
+
|`bind:selected`|Which options users have chosen| Always an array: `[]`, `['Apple']` or `['Apple', 'Banana']`|
75
+
|`bind:value`| Single-select convenience for the user-selected option| Single item: `'Apple'` (or `null`) if `maxSelect={1}`, otherwise same as `selected`|
<!-- Object options (need 'label' property, can have arbitrary other keys, some like `value`, `disabled`, `preselected`, `style` have special meaning, see type ObjectOption) -->
87
+
<MultiSelect
88
+
bind:selected
89
+
options={[
90
+
{ label: 'Red', value: '#ff0000' },
91
+
{ label: 'Blue', value: '#0000ff' },
92
+
]}
93
+
/>
91
94
```
92
95
93
96
### Troubleshooting
@@ -118,10 +121,12 @@ These are the core props you'll use in most cases:
0 commit comments