ChipInput nativelite
A multi-value field of removable chips (Enter or comma adds); bind values.
Preview
Loading the renderer…
createSurface + updateComponents, A2UI v0.9.
json
[
{
"version": "v0.9",
"createSurface": {
"surfaceId": "preview",
"catalogId": "https://ui.exponential.at/catalogs/core/v1"
}
},
{
"version": "v0.9",
"updateComponents": {
"surfaceId": "preview",
"components": [
{
"id": "root",
"component": "Stack",
"direction": "vertical",
"align": "stretch",
"children": [
"example"
]
},
{
"id": "example",
"component": "ChipInput",
"label": "Labels",
"name": "labels",
"values": [
"bug",
"ios"
]
}
]
}
}
]This surface through a MemoryTransport. Install and transports: React guide.
This surface through a MemoryTransport. Install and transports: SwiftUI guide.
This surface through a MemoryTransport. Install and transports: Compose guide.
This surface through a MemoryTransport. Install and transports: gpui guide.
Platforms




View exponential-ui-chip-input, painted by each native renderer.
Variants
disabledProps
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | – | The field label. |
namerequired | string | – | The field's key in the submitted data. |
valuesbind | [string] | – | The entries; bind them. |
suggestionsbind | [option] | – | Completions offered while typing. |
placeholder | string | – | Hint text while empty. |
max | number | – | The most entries allowed. |
disabled | boolean | false | Shows it inert. |
checks | [check] | – | Validation rules. |
Events and slots
| Name | Kind |
|---|---|
on.change | event: runs an action |
on.add | event: runs an action |
on.remove | event: runs an action |
Accessibility
- Role
textbox- Semantics
- textbox with a list of removable chips
| Keys | Action |
|---|---|
| Entercomma | add the typed entry |
| Backspace in an empty field | focus the last chip, again: remove it |
| ArrowLeftArrowRight | move between chips; Delete, Backspace: remove the focused chip |
| ArrowDown | open the suggestions (as Select) |
Theming
- 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