View Source Phoenix.UI.Components.Textarea (Phoenix UI v0.1.9)
Provides textarea component.
Link to this section Summary
Functions
Renders textarea component.
Link to this section Functions
@spec textarea(Phoenix.LiveView.Socket.assigns()) :: Phoenix.LiveView.Rendered.t()
Renders textarea component.
examples
Examples
```
<.textarea />
```
attributes
Attributes
phx-debounce(:any) - Defaults to"blur".phx-feedback-for(:any)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".name(:any)start_icon(:map) - Heroicon-specific attrs to use, such asname. Defaults tonil.type(:string) - Defaults to"text".value(:any)variant(:string) - Defaults to"simple".- Global attributes are accepted. Supports all globals plus:
["autocomplete", "disabled", "form", "max", "maxlength", "min", "minlength", "pattern", "placeholder", "readonly", "rows", "required", "size", "step"].