Skip to main content

Overview

Text input elements capture user-entered text and numbers. Choose the right type based on what you’re collecting—each type provides appropriate validation and UI.

Text Input

Single-line text input for short text like usernames, titles, or labels.

Properties

Validation

Example

linkapp.config.ts

Usage in Layout

app/expanded.tsx

Common Patterns

Display name:
Title or heading:
Custom label:

Textarea

Multi-line text input for longer content like descriptions or messages.

Properties

Validation

Example

linkapp.config.ts

Usage in Layout

app/expanded.tsx

Common Patterns

Description field:
Custom message:

URL Input

URL input with built-in validation to ensure valid HTTP/HTTPS addresses.

Properties

Validation

URL inputs automatically validate that the value starts with http:// or https://. Use pattern for additional constraints like requiring HTTPS.

Example

linkapp.config.ts

Usage in Layout

app/expanded.tsx

Common Patterns

External link:
API endpoint:

Number Input

Numeric input with min/max validation.

Properties

Validation

Example

linkapp.config.ts

Usage in Layout

app/expanded.tsx

Common Patterns

Item limit:
Timeout/duration:
Percentage:

Complete Example

Here’s a contact form using multiple text input types:
linkapp.config.ts

Validation Error Messages

When validation fails, users see helpful messages:
Add clear description text to help users understand what’s expected and avoid validation errors.

Next Steps

Selection Controls

Select, radio, and checkbox elements

Toggles

Switch and link behavior elements

Advanced Elements

Arrays, integrations, and conditional display

Back to Reference

Return to settings reference overview