Form flow

A form with validation and submission states.

0:00 / 0:01

Customize

100

Installation

pnpm odori add component form-flow

Edit the source in videos/components/form-flow/. Use odori diff to compare upstream changes and odori update to apply updates.

Timing contract

Use these durations and content limits when composing a scene. Run odori test to check your video.

Family
Interface
Recommended duration
180 frames · 6s
Minimum duration
60 frames · 2s
Entrance
14 frames
Exit
20 frames
Reduced motion
values appear complete rather than typing in
Requires
sans font
Content limits
title ≤ 48, fields ≤ 4, submit ≤ 24

Props

PropTypeDefaultRequired
titlestring"Create a project"—
fieldsFormField[][]—
submitstring"Create"—
submitAtFrame the submit is pressed.number100—
successWhat replaces the form once it succeeds.string"Project created"—

Related components

All components