Pickers & inputs
JS behaviour
Tag input
Type and press Enter or a comma and the chip springs in; Backspace on an empty input removes the last one, duplicates flash and there is a cap.
Real scenarios
The component as it is used in a product — not a specimen grid.
Senior Laravel developer
Skills candidates are filtered on — up to six.
- Laravel
- Livewire
- Accessibility
Saved on the server: Laravel, Livewire, Accessibility
Share the report
- sara@nabux.ir
Paste “reza@nabux.ir, nika@nabux.ir” — each address becomes a chip. Add sara@nabux.ir again and the chip that is already there flashes.
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| value / wire:model | array | [] | The starting tags; wire:model binds the array. |
| suggestions | array | [] | Offered while typing (the ones already added are left out). |
| max | int | null | The cap; a "3 / 6" counter under the field. |
| name | string | null | Posts each tag as name[] in a plain form. |
Snippet
<x-nx::tag-input name="skills" :max="6" :suggestions="['Laravel', 'Livewire', 'Alpine']"
wire:model.live="skills" />