Streaming

StreamingForm

AI-generated form that reveals fields as they stream in. Advance visibleCount to mount each field with a fade-in-up entry; while streaming is true and more fields remain hidden, a 'composing next field…' indicator renders below. Works controlled via values + onChange or uncontrolled.

Sourcesrc/components/ai/streaming-form.tsx

Mid-stream

Three fields have been emitted, two remain. streaming={true} shows the composing indicator and blinks a cursor on the most recently revealed label.

Completed

streaming={false} hides the composing indicator, un-blinks the cursor, and enables the submit button.