Demo: Select

The select component offers an easy way to provide select menus in your forms.

Basic Usage

<x-select name="basic-usage-demo">
    <option value="">Select an option</option>
    <option value="can">Canada</option>
    <option value="usa">United States</option>
</x-select>

Options Array

<x-select name="options-array-demo"
          :options="[
              '' => 'Select an option',
              'can' => 'Canada',
              'usa' => 'United States',
          ]"
/>

Multiple Select

<x-select name="multi-demo"
          multiple
          :options="[
              '' => 'Select an option',
              'can' => 'Canada',
              'usa' => 'United States',
          ]"
/>