diff --git a/src/lib/components/ui/TagInput.svelte b/src/lib/components/ui/TagInput.svelte index fce66b9b..2d9ee5c1 100644 --- a/src/lib/components/ui/TagInput.svelte +++ b/src/lib/components/ui/TagInput.svelte @@ -21,6 +21,8 @@ class?: string /** Input id for label association */ id?: string + /** Whether to show contained style with background */ + contained?: boolean } let { @@ -31,7 +33,8 @@ error, maxTags, class: className = '', - id + id, + contained = false }: Props = $props() let inputValue = $state('') @@ -83,6 +86,7 @@ class="tagInput" class:disabled class:hasError={!!error} + class:contained onclick={focusInput} onkeydown={(e) => e.key === 'Enter' && focusInput()} role="button" @@ -126,6 +130,7 @@