Docs
Components/Forms/TextArea

TextArea

A multi-line text input field.

s0 add textarea

Usage

@State private var bio = ""

S0.TextArea("Bio", text: $bio, placeholder: "Tell us about yourself")
S0.TextArea(text: $notes, placeholder: "Notes...", minHeight: 120)

Parameters

NameTypeDefaultDescription
labelString?nilOptional label above the text area.
textBinding<String>Binding to the text value.
placeholderString""Placeholder text.
minHeightCGFloat80Minimum height of the text area.