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
@spec select(Phoenix.LiveView.Socket.assigns()) :: Phoenix.LiveView.Rendered.t()
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 asname
. Defaults tonil
.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 tofalse
.helper_text
(:string
) - Defaults tonil
.id
(:any
)label
(:string
) - Defaults tonil
.margin
(:string
) - Defaults to"normal"
.multiple
(:boolean
) - the multiple flag for selects. Defaults tofalse
.name
(:any
)options
(:list
) - the options to pass to Phoenix.HTML.Form.options_for_select/2.prompt
(:string
) - the prompt for selects. Defaults tonil
.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 asname
. Defaults tonil
.type
(:string
) - Defaults to"text"
.value
(:any
)variant
(:string
) - Defaults to"simple"
.