View Source Phoenix.UI.Components.Select (Phoenix UI v0.1.5)

Provides select component.

Link to this section Summary

Functions

Renders select component.

Link to this section Functions

Renders select component.

examples

Examples

```
<.select />
```

attributes

Attributes

  • phx-debounce (:any) - Defaults to "blur".
  • phx-feedback-for (:string)
  • end_icon (:map) - Heroicon-specific attrs to use, such as name. Defaults to nil.
  • errors (:list)
  • extend_class (:string) - Extend existing classes applied to the component.
  • field (:any) - a %Phoenix.HTML.Form{}/field name tuple, for example: {f, :email}.
  • full_width (:boolean) - Defaults to false.
  • helper_text (:string) - Defaults to nil.
  • id (:any)
  • label (:string) - Defaults to nil.
  • margin (:string) - Defaults to "normal".
  • multiple (:boolean) - the multiple flag for selects. Defaults to false.
  • name (:any)
  • options (:list) - the options to pass to Phoenix.HTML.Form.options_for_select/2.
  • prompt (:string) - the prompt for selects. Defaults to nil.
  • rest (:global) - Supports all globals plus: ["autocomplete", "disabled", "form", "max", "maxlength", "min", "minlength", "pattern", "placeholder", "readonly", "required", "size", "step"].
  • start_icon (:map) - Heroicon-specific attrs to use, such as name. Defaults to nil.
  • type (:string) - Defaults to "text".
  • value (:any)
  • variant (:string) - Defaults to "simple".