Textarea

A multi-line text control bound to a model field.

The server counts the characters on every change.

Open in new tab

Each preview is its own Live page in a frame, because this site is a Vue 3.5 app built on the Pulsar starter kit. An open list or popover stays inside its frame; in your application it opens over the page.

Installation

bash
suprnova live:add textarea

Usage

html
{% import "suprnova-ui/textarea/textarea.html" as textarea %}
{% call textarea::textarea("bio", rows=4, value=bio) %}{% endcall %}

Examples

Rows

A taller textarea whose lines the server counts.

Open in new tab

Keyboard and accessibility

suprnova.textarea - a native textarea bound to a model path; value is the island's current text, rendered as the content (FORM-009), and authority marks a server correction (Live spec 12). A line feed follows the start tag because the HTML parser drops the first one there, so a value that begins with a line feed keeps it.

API reference

textarea

ParameterDefaultDescription
nameRequiredThe model field the textarea binds; also its `id` and `name`.
rows4The visible number of lines.
placeholder""Placeholder text.
requiredfalseMarks the control required.
value""The island's current value of the field, so the control shows it.
authority""A correction sequence. When set, this render replaces the visitor's unsent edit.