Text Area

Attribute Type Documentation Default Value
id :string
field %FormField{}

A Phoenix form field

label :string

Label to be rendered above the textarea.

sublabel :string

Sublabel to be rendered above the textarea.

hint :string

Hint text to be rendered below the textarea.

hint_variant :string

Hint text variant.

"default"
error :string

Errors to be rendered below the textarea. Takes precedence over hint.

show_error_message :boolean

Whether to show the error message below the textarea.

true
name :string

The name of the textarea

value :string

The value of the textarea

placeholder :string

Placeholder text to be rendered in the textarea.

required :boolean

Whether the textarea is required.

false
show_required :boolean

Whether the required indicator is shown.

false
rows :integer

Number of visible text lines for the textarea.

4
max_length :integer

Maximum number of characters allowed.

200
show_character_count :boolean

Whether to show the character count.

true
resize :string

CSS resize property for the textarea.

"vertical"
disabled :boolean

Whether the textarea is disabled.

false
rest :global