mirror of
https://github.com/immich-app/ui.git
synced 2026-09-30 13:32:54 +08:00
* chore: formatter use 2 spaces instead of tabs * chore: format * chore: use defaults * chore: 120 width --------- Co-authored-by: Jason Rasmussen <jason@rasm.me>
15 lines
423 B
Svelte
15 lines
423 B
Svelte
<script lang="ts">
|
|
import InternalSelect from '$lib/internal/Select.svelte';
|
|
import type { MultiSelectProps, SelectItem } from '$lib/types.js';
|
|
|
|
type T = SelectItem;
|
|
|
|
let { onChange, values = $bindable([]), ...restProps }: MultiSelectProps<T> = $props();
|
|
|
|
const handleChange = (items: T[]) => {
|
|
onChange?.(items);
|
|
};
|
|
</script>
|
|
|
|
<InternalSelect multiple bind:values onChange={handleChange} {...restProps} />
|