On this page:

Text Input

Preview

index.tsx

Preview

index.tsx

Clearable

Preview

index.tsx

Preview

index.tsx

States

Preview

index.tsx
Error message

Preview

index.tsx
Error message

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Floating label

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx
Error message

Preview

index.tsx
Error message

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Size Medium

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx
Error message

Preview

index.tsx
Error message

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Alternative

Clearable

Preview

index.tsx

Preview

index.tsx

States

Preview

index.tsx
Error message

Preview

index.tsx
Error message

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Floating label

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx
Error message

Preview

index.tsx
Error message

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Preview

index.tsx

Design Tokens for TextInput

Note: TextInput uses the same design tokens as the Input component. See Input documentation for available tokens.


TextInput API Reference

<TextInput />

PropTypeDefaultDescription
typestring'text'Input type (always 'text' for TextInput)
...InputPropsSee InputInherits all props from Input

Note: TextInput inherits all props from Input and the native input element. See Input documentation for full details on available props and tokens.