Skip to content

Textarea

Textarea renders a native <textarea> styled with Tailwind, forwarding every native attribute (placeholder, rows, value, disabled, and the rest). There is no Navius primitive underneath and no bespoke behavior of its own.

Terminal window
navius add textarea --to ./src/MyApp --namespace MyApp.Ui
<ZitsLabel For="message">Your message</ZitsLabel>
<ZitsTextarea id="message" placeholder="Type your message here." />

No bespoke props: ZitsTextarea splats every attribute onto the native <textarea>, so use it exactly like <textarea>.

Attributes is forwarded to the rendered textarea and merged with the base classes via Cn.Class, caller classes applied last. There are no variant/size parameters.

Textarea emits no data-* state hooks; styling reacts to native pseudo-classes (disabled:, focus-visible:, placeholder:).

Textarea wires no ARIA role of its own beyond the native <textarea> element’s semantics; any aria-* attribute the caller supplies passes straight through via attribute splatting.