Experimental #
Our styling/component documentations are experimental and under development. These could change any time without even notice. So, please be careful before you using it.
Combobox Component #
This component can show beautiful select, dropdowns instead of HTML native select which makes Lara Dashboard selects more user friendly.
Code:
@php
$statusOptions = ld_apply_filters('post_status_options', [
['value' => 'draft', 'label' => __('Draft')],
['value' => 'publish', 'label' => __('Published')],
['value' => 'pending', 'label' => __('Pending Review')],
['value' => 'future', 'label' => __('Scheduled')],
['value' => 'private', 'label' => __('Private')],
]);
$currentStatus = old('status', $post->status ?? 'draft');
@endphp
<x-inputs.combobox
name="status"
label="{{ __('Status') }}"
:options="$statusOptions"
:selected="$currentStatus"
:multiple="false"
:searchable="false"
x-model="status" />
Preview:

Combobox Multi Select Component #
This component can show multi checkbox in combobox component.
Code:
<x-inputs.combobox
name="roles[]"
label="{{ __('Assign Roles') }}"
placeholder="{{ __('Select Roles') }}"
:options="collect($roles)->map(fn($name, $id) => ['value' => $name, 'label' => ucfirst($name)])->values()->toArray()"
:selected="old('roles', [])"
:multiple="true"
:searchable="false"
/>
Preview:
