Components / Inputs

ChipInput nativelite

A multi-value field of removable chips (Enter or comma adds); bind values.

Children
none
Loading the renderer…
ChipInput rendered by the React renderer on Web
Web React
ChipInput rendered by the SwiftUI renderer on iOS
iOS SwiftUI
ChipInput rendered by the Compose renderer on Android
Android Compose
ChipInput rendered by the gpui renderer on Desktop
Desktop gpui

View exponential-ui-chip-input, painted by each native renderer.

disabled
PropTypeDefaultDescription
labelstring–The field label.
namerequiredstring–The field's key in the submitted data.
valuesbind[string]–The entries; bind them.
suggestionsbind[option]–Completions offered while typing.
placeholderstring–Hint text while empty.
maxnumber–The most entries allowed.
disabledbooleanfalseShows it inert.
checks[check]–Validation rules.
NameKind
on.changeevent: runs an action
on.addevent: runs an action
on.removeevent: runs an action
Role
textbox
Semantics
textbox with a list of removable chips
KeysAction
Entercommaadd the typed entry
Backspace in an empty fieldfocus the last chip, again: remove it
ArrowLeftArrowRightmove between chips; Delete, Backspace: remove the focused chip
ArrowDownopen the suggestions (as Select)
Recipe parts
ChipInput/rootChipInput/labelChipInput/fieldChipInput/chipChipInput/chipLabelChipInput/removeChipInput/placeholderChipInput/descriptionChipInput/errorChipInput/input
Keyed by
disabled:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover

Themes · Write a theme