Textarea

A multi-line text input styled to match the hub-ui form controls. Use it for free-form content such as notes, descriptions, or messages. The value is two-way bindable via bind:value, and any extra attributes (rows, disabled, readonly, maxlength, name, id, aria-*) are forwarded to the underlying native <textarea>.

Default

Same field rules as Inputbg-field surface-field, resolved against whatever surface it sits on. rows gives it the height the content deserves.

Not editable

disabled takes the field out of the form and dims it; readonly keeps it submittable and selectable but not editable. Reach for readonly when the value still matters to the request.

Labelled field

Label above, helper text below, both in the same column as the field. Native maxlength is forwarded, so the cap is enforced by the browser rather than by a watcher.

Up to 120 characters.

API

Prop Type Default Description
value bindable string ''

The current text content. Two-way bindable via bind:value.

placeholder string ''

Placeholder text shown when the field is empty.

class string

Additional Tailwind classes merged onto the root <textarea>.

rows number

Native attribute forwarded via ...rest — visible number of text lines.

disabled boolean

Native attribute forwarded via ...rest — disables the field.

readonly boolean

Native attribute forwarded via ...rest — makes the field read-only.

maxlength number

Native attribute forwarded via ...rest — maximum number of characters.