Selects

Default
<x-app-ui::select label="Pick your favorite fruit" id="fruits">
    <option value="banana">Banana</option>
    <option value="pineapple">Pineapple</option>
    <option value="watermelon">Watermelon</option>
</x-app-ui::select>

API

app-ui::select

Attributes

Name Default Options Notes
error-text
helper-text
icon Any Blade icon component name Define a custom icon to display after the selected option.
id name, if provided
label
name If provided, this will be used to display error messages for this field.
placeholder

Slots

Name Notes
Main Contains the <option> items for this select.