# `Backpex.Fields.Select`
[🔗](https://github.com/naymspace/backpex/blob/0.18.3/lib/backpex/fields/select.ex#L2)

A field for handling a select value.

## Field-specific options

See `Backpex.Field` for general field options.

* `:options` - Required. List of possibly grouped options or function that receives the assigns.

* `:prompt` - The text to be displayed when no option is selected or function that receives the assigns.

* `:debounce` - Timeout value (in milliseconds), "blur" or function that receives the assigns.

* `:throttle` - Timeout value (in milliseconds) or function that receives the assigns.

## Example

    @impl Backpex.LiveResource
    def fields do
      [
        role: %{
          module: Backpex.Fields.Select,
          label: "Role",
          options: [Admin: admin, User: user]
        }
      ]
    end

# `config_schema`

Returns the schema of configurable options for this field.

This can be useful for reuse in other field modules.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
