Input Fields

A focused collection of input fields optimized for data entry and user information capture with advanced validation, autocomplete support, and comprehensive field types. Perfect for building registration forms, profile editors, and data collection interfaces.

Examples

This interactive demo runs inside the showcase's app-level TamboProvider, which sets a per-user context key (persisted in localStorage).

User Registration Fields

Tambo Conversations

Loading threads...

Installation

$
npx tambo add input-fields

Component API

InputFields

PropTypeDefaultDescription
fieldsInputField[][]Array of input field configurations
variant"default" | "solid" | "bordered""default"Visual style of the container
layout"default" | "compact" | "relaxed""default"Spacing between input fields
classNamestring-Additional CSS classes for customization

InputField

PropTypeDefaultDescription
idstring-Unique identifier for the field
type"text" | "email" | "password" | "number"-Type of input field to render
labelstring-Label text displayed above the field
placeholderstring-Placeholder text shown in empty fields
requiredbooleanfalseWhether the field is required
disabledbooleanfalseWhether the field is disabled
descriptionstring-Helper text displayed below the field
minLengthnumber-Minimum character length for validation
maxLengthnumber-Maximum character length for validation
patternstring-Regular expression pattern for validation
autoCompletestring-Autocomplete attribute for browser support
errorstring-Error message displayed below the field