https://dryui.dev https://docs.dryui.dev http://localhost:5173

Press Enter to add. Wildcards (*.dryui.dev) are allowed for subdomains only.

Styled quick start

Copy this entrypoint first. It includes the imports required to get the component on screen.

svelte
<script lang="ts">
  import '@dryui/ui/themes/default.css';
  import '@dryui/ui/themes/dark.css';
  import { TagsInput } from '@dryui/ui';
</script>

<TagsInput.Root>
  <TagsInput.Input>...</TagsInput.Input>
  <TagsInput.Tag>...</TagsInput.Tag>
  <TagsInput.TagDelete>...</TagsInput.TagDelete>
  <TagsInput.List>...</TagsInput.List>
</TagsInput.Root>

Import options

Root package

ts
import { TagsInput } from '@dryui/ui'

Per-component subpath

ts
import { TagsInput } from '@dryui/ui/tags-input'

API

Props, CSS variables, and the public data attributes you can target when styling.

Prop Type Description Default Required Bindable

TagsInput.Root

size
smmdlg
Size preset affecting density, spacing, or typography. 'md'
value
string[]
Current controlled or bindable value. []
maxTags
number
0
allowDuplicates
boolean
false
disabled
boolean
Prevents interaction and applies disabled styling. false
onValueChange
(value: string[]) => void
children
Snippet
Content rendered inside the component.

TagsInput.Input

placeholder
string
Hint text shown when no value is selected or entered.

TagsInput.Tag

index
number
value
string
Current controlled or bindable value.
children
Snippet
Content rendered inside the component.

TagsInput.TagDelete

index
number
value
string
Current controlled or bindable value.

TagsInput.List

children
Snippet
Content rendered inside the component.