s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Forms and controls

TagsInput

No summary has been written for TagsInput. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.

Public export

typescript
import { TagsInput } from '@happyvertical/smrt-ui/forms';
Import path
@happyvertical/smrt-ui/forms
Props
10
Props described
10 of 10
Bindable state
0
Callback events
1
Verified release
0.44.0

Props

NameTypeRequiredDescription
valuesstring[]NoThe array of tag strings currently in the input.
labelstringYesLabel displayed above the tags input.
namestringNoForm field name for the hidden tag inputs.
placeholderstringNoPlaceholder text for the input field.
disabledbooleanNoBlocks adding or removing tags.
maxTagsnumberNoMaximum number of tags allowed in the input.
allowDuplicatesbooleanNoAllows the same tag value to be added multiple times.
interactionControlInteractionOptions | falseNoRegisters this control for agent interaction; omit or pass false to exclude.
onvalueschange(values: string[]) => voidNoFired when the tag array is modified.
classstringNoAdditional CSS class names.

Bindable state

This component has no bindable public state.

Callback events

  • onvalueschange(values: string[]) => void

Examples and explanation