Skip to content

ChipInput

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

Group: Inputs · Kind: native · in the lite catalog

example
  • bug
  • ios
disabled · true
  • bug
  • ios

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-chip-input on Web
exponential-ui-chip-input on iOS
exponential-ui-chip-input on Android
exponential-ui-chip-input on Desktop
Prop Type Required Bindable Description
label string – – The field label.
name string yes – The field’s key in the submitted data.
values [string] – yes The entries; bind them.
suggestions [option] – yes Completions offered while typing.
placeholder string – – Hint text while empty.
max number – – The most entries allowed.
disabled boolean – – Shows it inert. Default false.
checks [check] – – Validation rules.
  • on.change: runs an action
  • on.add: runs an action
  • on.remove: runs an action

None.

none

No basic catalog component maps here.

A native component: every renderer paints it directly.

Role: textbox

textbox with a list of removable chips

Keys Action
Enter comma add the typed entry
Backspace in an empty field focus the last chip, again: remove it
ArrowLeft ArrowRight move between chips; Delete, Backspace: remove the focused chip
ArrowDown open the suggestions (as Select)

Recipe parts: ChipInput/root ChipInput/label ChipInput/field ChipInput/chip ChipInput/chipLabel ChipInput/remove ChipInput/placeholder ChipInput/description ChipInput/error ChipInput/input

Keyed by: disabled :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Form · FieldGroup · FormActions · Input · Textarea · NumberField · Checkbox · Radio