TagInput
Default
svelte kit
Props
| Prop | Type | Default | Notes |
|---|---|---|---|
| value | string[] | [] | Selected tags. |
| availableTags | string[] | [] | Suggestions offered while typing. |
| onChange | (next: string[]) => void | — | Called with the new tag list. |
| placeholder | string | — | Placeholder text. |
| disabled | boolean | false | Disables the input. |
| inputId | string | — | Native input id. |
| chipClass | string | built-in | Base classes for every chip. |
| chipClassFor | (tag: string) => string | — | Per-tag chip classes; wins over chipClass. |
| chip | Snippet<[tag, remove]> | — | Custom chip renderer. |
| option | Snippet<[tag]> | — | Custom suggestion renderer. |