Docs
Components/Forms/Input

Input

A styled text input field with optional label support.

s0 add input

Usage

@State private var email = ""

S0.Input("Email", text: $email, placeholder: "you@example.com")
S0.Input(text: $name, placeholder: "Enter your name")

Parameters

NameTypeDefaultDescription
labelString?nilOptional label displayed above the field.
textBinding<String>Binding to the text value.
placeholderString""Placeholder text.