Data JS behaviour

Multi-select

A searchable multi-select with per-option descriptions and a selection cap; Alpine owns the chips while the array reaches Livewire through x-modelable.

Real scenarios

The component as it is used in a product — not a specimen grid.

Which languages may the agent answer in?

A plain form field: every pick posts as languages[]. Backspace removes the last chip; typing filters by label — in any script.

  • فارسی
  • English
  • 日本語
  • العربية
  • فارسی Persian · default
  • English English
  • العربية Arabic · RTL
  • 日本語 Japanese
  • 中文 Chinese
  • हिन्दी Hindi
  • Español
  • Français
  • Deutsch
  • Türkçe
  • 한국어
  • Português

No language matches

At most three channels per agent

The cap disables the rest; SMS is disabled by data. Every change goes live to the server.

  • WhatsApp Voice notes supported
  • Telegram Inline keyboards
  • Web chat The site widget
  • Email Threads stay whole
  • LINE Japan only
  • SMS Coming next quarter

No results found

On the server (wire:model.live): — (0/3)

Important props

Important props
Prop Type Default What it does
options array [] Either ['en' => 'English'] or a list of ['value', 'label', 'icon', 'description', 'disabled'].
wire:model — null Sits on the component itself and binds the array of chosen values (Livewire 3 and 4).
name string null In a plain form it posts every value as name[].
max int null The selection cap; beyond it the other options disable.
placeholder / searchPlaceholder / emptyText string null The placeholder, search and empty-result texts.

Snippet

<x-nx::multi-select label="زبان‌های پاسخگویی" :options="$languages" :max="3"
    wire:model.live="state.networks" />