Vibary.ai
← Vibe Coding

Prompt Submit Lift

The composed prompt lifts out of the field and docks as a sent message while the thread makes room.

aifriendlypremiuminteraction · finite · intermediate · ~0.6s
Interactive · click to play
Variant

The animated component in this preview is rendered from the canonical file shown here. The surrounding demo shell only provides context and is not part of the copied code.

269 lines · react + motion only
import { useEffect, useState } from "react";
import { AnimatePresence, motion, useReducedMotion } from "motion/react";

/**
 * Vibary · Prompt Submit Lift
 *
 * Sending a prompt as a handoff rather than a cut: the composed text
 * lifts out of the field, the thread above makes room, and the message

About this pattern

Submitting a prompt is the moment a draft stops being yours and becomes part of the record, and a field that simply blanks throws that away. Here the composed text rises out of the input and fades as it goes, the thread above shifts up on a position-only layout animation, and the message docks a beat later at the bottom of the conversation. Position-only is the important part: the bubbles move without their boxes being interpolated, so no glyph is stretched by the reflow.

Send a chat promptComposer to thread handoffMessage submissionFollow-up question

Where it shows up

Screens we drew to show where this motion usually sits. Illustrations, not captures of any product.

  • Summarise the supplier contract and flag anything unusual.
    The renewal runs another twelve months at the same rate, with one clause worth a second look.
    Supplier contract.docxQ3 planning notes
    Ask a follow-up
    AI assistant

    The composed prompt leaves the composer and settles into the thread as the newest turn.

Related patterns