Skip to content
Back

TextareaPro

A multiline field for notes and longer text, with helper and error rows that open on a spring and a count that rolls only the digits that changed.

oxyn add labeled-textarea
Markdown works · 40 characters
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • The multi-line Input: the same helper and error rows, plus an optional count (“· 120 characters”) whose digits roll as you type.

When not to use

  • On or off for things that apply right away: use Switch instead.
  • A real checkbox with a label and second line, an indeterminate state for Select all, an error, a card row and a check that draws itself: use Checkbox instead.
  • Pick one: use Radio group instead.

Installation

Textarea is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add labeled-textarea

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Count

The count rolls only the digits that change as you type.

Markdown works · 40 characters
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Error

Error row with role=alert.

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

LabeledTextarea

PropTypeDefaultDescription
labelrequiredString—Label.
valueStringDefault::default()Initial value.
placeholderOption<String>Default::default()Placeholder.
descriptionOption<String>Default::default()Helper copy.
errorOption<String>Default::default()Error copy (replaces the helper).
countboolDefault::default()Append the character count to the helper.
rowsusize4Visible rows.
max_lengthOption<usize>Default::default()Character limit.
disabledboolDefault::default()Disabled.
on_inputEventHandler<String>—Every edit.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabFocuses the field

Accessibility

  • aria-describedby links the helper or error row; the error is role=alert.
From the spec
  • role=alert on errors; aria-describedby.

Motion & interaction

Timing
  • Reduced motion: rows open at full height, words and digits swap without rise or roll, the ghost appears and turns solid without fading, the height tween is off.

Responsive behaviour

  • Fills its container; resizes vertically.
Edge cases (spec)
  • Fills its container; resizes vertically.

Notes for AI

  • Import LabeledTextarea from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • There is no GPUI version yet; use the Dioxus component.
  • Props to set first: label.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI