Playground GitHub npm

Textarea

Multi-line word-wrapping text field with focus ring.

ui form

Preview

Installation

npx slintcn@latest add textarea

Usage

import { Textarea } from "slintcn/components/textarea.slint";

Textarea { placeholder: "Tell us about yourself…"; text <=> bio; }

Properties

text in-out string

Two-way bound to the contents.

placeholder in string

Hint shown when empty.

enabled in bool

When false, the textarea dims and stops accepting keystrokes.

edited callback (string)

Fired on every keystroke with the current text.

API

Accessibility
focusableyes
keyboardtext entry

Dependencies

theme only

Installed automatically as transitive dependencies of slintcn add textarea.