> For the complete documentation index, see [llms.txt](https://queents.gitbook.io/vilt/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://queents.gitbook.io/vilt/components/select.md).

# Select

<figure><img src="https://598543987-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3nnlrjn6TtcCpL6SXFhI%2Fuploads%2FiOhnK2p1S6ga444pTZxH%2FScreenshot%202022-10-31%20at%201.44.25%20PM.png?alt=media&amp;token=d9c8872f-30ce-41cd-9de1-0c2877e7617a" alt=""><figcaption></figcaption></figure>

you can use `Select::class` to build a select input like this

```php
Select::make('name');
```

this class works with vue `ViltSelect.vue`

it has some more methods for setting options

```php
->options(array) //you can use Options::class to add new options or array ["name"=>"", "id"=>""]
->trackByName(string)
->trackById(string)
->multi(bool)
```
