Skip to main content

Overview

Settings elements define the form fields shown to users when they configure your LinkApp. Each element type provides different input options—from simple text boxes to complex arrays.
linkapp.config.ts
The id property becomes a prop in your layout component:
app/expanded.tsx

Quick Reference

Common Properties

All element types share these base properties:

Example

Element Categories

Text Inputs

Simple and multi-line text entry fields.

Text & Textarea

Single-line and multi-line text inputs

URL Input

Validated URL inputs for website links

Number Input

Numeric values with min/max validation

View All Text Inputs →

See detailed documentation

Selection Controls

Dropdowns, radio buttons, and checkboxes for choosing options.

Select Dropdown

Choose one from many options

Radio Buttons

Visual option selection (2-5 choices)

Checkboxes

Single or multiple selections

View All Selection Controls →

See detailed documentation

Toggles & Switches

Boolean controls for on/off states.

Switch Toggle

Enable/disable features

Link Behavior

Control how links open (Linktree-specific)

View All Toggles →

See detailed documentation

Advanced Elements

Complex inputs for lists, integrations, and conditional logic.

Array Lists

Dynamic lists of structured items

Integrations

Connect third-party services

Conditional Display

Show/hide elements based on values

View All Advanced Elements →

See detailed documentation

Validation

Add validation rules to ensure correct input:

Validation Rules Reference

Character Counter: When you set maxLength on a text field, the Linktree editor automatically shows a real-time character counter (e.g., “45/100 characters”) as users type.

Array Validation Example

File Validation Example

Validation Examples

See validation examples for each element type

Type Safety

Define settings types for full TypeScript support:
TypeScript will autocomplete prop names and catch type errors during development!

Best Practices

Use Descriptive IDs

Provide Default Values

Add Help Text

Choose Appropriate Types

Complete Example

Here’s a real-world example for a weather LinkApp:
linkapp.config.ts

Explore Element Types

Text Inputs

Text, textarea, URL, and number inputs

Selection Controls

Select, radio, and checkbox elements

Toggles

Switch and link behavior elements

Advanced Elements

Arrays, integrations, and conditional display

Next Steps

Configuration

Learn about settings structure

Layouts

Use settings in your layouts

Examples

See real-world examples