test(multi-select): more unit tests

This commit is contained in:
Eric Liu 2025-04-12 13:08:38 -07:00
commit 8ab77c99e2
4 changed files with 328 additions and 360 deletions

View file

@ -0,0 +1,12 @@
<script lang="ts">
import { MultiSelect } from "carbon-components-svelte";
import type { ComponentProps } from "svelte";
export let items: ComponentProps<MultiSelect>["items"] = [];
</script>
<MultiSelect {items} let:item let:index>
<div>
<strong>{item.id} {item.text} {index}</strong>
</div>
</MultiSelect>