Select

Selects are used to collect user input in a dropdown list.


/* select-example.blade.php */

<x-select name="fruit" class="min-w-32" :items="[ 'apple' => 'Apples', 'banana' => 'Bananas', 'cherry' => 'Cherries', ]" />

Component API

Prop Description Values
as Change the element tag of the component any
items Set the items of the component Array of key-value pairs
size Change the font size of the component Dependant on theme
color Change the color of the component Dependant on theme