Skip to main content
reopt Handbook
reopt Handbook
Design Systems for the AI Era

Foundation

Token ArchitectureComponent SpecBuilt-in Accessibility

AI Workflow

Prompt InterfaceDESIGN.md InterfaceAgentic Design Quality ControlWorkflow StrategiesAI-Based Design System EvolutionContext Injection

User Experience

Consistency PatternsInteraction DesignForms and Data Input

Next Interfaces

Agent UI ProtocolsGenerative UISpatial and Multimodal Interfaces

Practice

Execution PlaybookMigration StrategyGovernance and CollaborationCase Studies

Operations

Verification ChecklistUpdate Log
Handbook›Design Systems for the AI Era›Forms and Data Input
한국어English

Forms and Data Input

Standardize validation, errors, and complex form composition.

Key takeaways

  • Reliable agent-generated forms require a standardized field contract for labels, help text, errors, required state, validation, and submission.
  • Validation should run on a shared schema rather than one-off string checks, and errors must be specific, actionable, and programmatically linked.
  • Agents must use form primitives, connect errors with aria-describedby, and never hide required constraints until after submission.
  • Preserve user input on failed submission and cover empty, loading, success, and error states for complex forms.
  • Multi-step and conditional forms need a documented step model, defined back/next behavior, partial-data preservation, and network-failure recovery.

Forms are the core interface between users and systems. Agents can generate reliable forms only when field composition, validation, error handling, and submission states are standardized.

Field Contract

Field partRequirement
LabelVisible unless there is a specific approved exception.
Help textExplains constraints before failure.
ErrorSpecific, actionable, and programmatically linked.
Required stateClear and consistent.
ValidationShared schema, not one-off string checks.
SubmissionLoading, success, failure, and retry states.

Standard Pattern

<FormField name="email">
  <FormLabel>Email</FormLabel>
  <TextInput type="email" autoComplete="email" />
  <FormDescription>Use your work email.</FormDescription>
  <FormError />
</FormField>

Agent Rules

  1. Use the form primitives before custom field markup.
  2. Connect errors with aria-describedby.
  3. Do not hide required constraints until after submission.
  4. Preserve user input on failed submission.
  5. Include empty, loading, success, and error states for complex forms.

Complex Forms

For multi-step or conditional forms:

  • document the step model;
  • show validation timing;
  • define back/next behavior;
  • preserve partial data;
  • provide recovery for network failures.

Verification

  • Schema validation tests.
  • Accessibility checks for labels and errors.
  • Keyboard traversal.
  • Mobile layout screenshots.
  • Submission failure simulation.

Related docs

Migration Strategy

Convert an existing design system into an AI-ready system incrementally.

Interaction Design

Tokenize state feedback, microinteractions, and motion behavior.

Scenario: Frontend Team

Harness Engineering · Design a harness where browser QA, accessibility, visual state, and design rules are load-bearing.

Prompt Engineering and Guardrails

Vercel Enterprise AI Platform · Design prompts, schemas, safety checks, and review gates for enterprise AI systems.

CRM and Email

New Brand Marketing Strategy · Build lifecycle messaging with consent, segmentation, triggers, and useful follow-up.

Interaction Design

Tokenize state feedback, microinteractions, and motion behavior.

Agent UI Protocols

Declarative protocols for AI agents that construct user interfaces.

On this page

Field ContractStandard PatternAgent RulesComplex FormsVerification