svelte-ux
svelte-ux copied to clipboard
MultiSelect[Field] improvements
- [ ] Support overriding Apply/Cancel buttons
- Useful for i18n support, along with changing button style (
variant="fill"
vs"variant="fill-light"
, etc) - Maybe add a
listActions
slot, or haveactions
override all actions? - Should
on:click
(applying) be moved to a surrounding<form>
? Does this impact a high level<form>
if so (stopPropagation?) - See: https://github.com/techniq/svelte-ux/issues/240
- Useful for i18n support, along with changing button style (
- [x] Support applying immediately on check (how does that effect showing the selected items at the top)
- [ ] Support applying on Menu blur (
MultiSelectField
only) - [ ] Improve accessibility
- [ ] Keyboard up/down and enter to select (similar to
SelectField
)
- [ ] Keyboard up/down and enter to select (similar to
- [ ] Prop to show selections as chips
- [ ] Icon to remove (x)
- [ ] Backspace
- [ ] Examples
- https://multiselect.janosh.dev/
- https://flowbite-svelte.com/docs/forms/select#MultiSelect
- https://carbon-components-svelte.onrender.com/components/MultiSelect
- https://react-select.com/home
- https://mui.com/material-ui/react-select/#chip
See discussion for some context