Textarea

This field is required. Must be at least 20 characters.
Attribute Type Documentation Default Value
id :any

HTML id attribute

name :any

HTML name attribute for form submission

value :any

the textarea content

field %FormField{}

a form field struct retrieved from the form

label :string

text label displayed above the textarea

placeholder :string

placeholder text shown when empty

rows :integer

number of visible text rows

3
cols :integer

number of visible text columns

size :string

textarea size

"md"
variant :string

the textarea style variant (ghost, filled, bordered)

"bordered"
color :string

color variant

"primary"
resize :string

resize behavior

"vertical"
helper :string

helper text displayed below the textarea

errors :list

list of error messages to display

[]
disabled :boolean

disables the textarea

false
horizontal :boolean

horizontal layout (label beside input)

false
state :string

validation state (applies form-group-success/warning)

readonly :boolean

makes the textarea read-only

false
required :boolean

marks the textarea as required

false
maxlength :integer

maximum character count

class :any

additional CSS classes for the wrapper

label_class :any

additional CSS classes for the label

textarea_class :any

additional CSS classes for the textarea element

rest :global