Tags Input
Enter a list of tags as removable chips.
svelte tailwind
Press Enter or , to add a tag, and Backspace (on an empty field) to remove the last one.
Installation
Installs the style saved in lily.json. For a new Diamond project,
run lily-svelte init --style diamond first.
Install the lily base and `utils` (run once per project).
npx lily-svelte@latest init Copy the tags-input source from the registry into $lib/components/ui/tags-input.
Usage
<script lang="ts">
import { TagsInput } from '$lib/components/ui/tags-input';
let value = $state(['svelte', 'tailwind']);
</script>
<TagsInput bind:value placeholder="Add a tag…" />