You can install the package via composer:
composer require bolyfci/livewire-multiselect
<x-multiselect
wire:model="multiselect"
:options="[['id' => 'laravel', 'name' => 'Laravel'], ['id' => 'alpineJs', 'name' => 'Alpine JS'], ['id' => 'livewire', 'name' => 'Livewire']]"
/>
Property | Arguments | Default | Example |
---|---|---|---|
trackBy | String Used to compare objects. | id | trackBy="id" |
label | String Label from option Object, that will be visible in the dropdown.. | name | title="name" |
options | Arrray Array of available options. | :options="$options ?: [] " |
|
placeholder | stringEquivalent to the placeholder attribute on a | select options | placholder="select options" |
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.