Vibary.ai
← Vibe Coding

Prompt Template Fill

Picking a starter writes its outline into the composer with the blanks lighting up.

aifriendlyenergeticinteraction · finite · starter · ~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.

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

/**
 * Vibary · Prompt Template Fill
 *
 * Choosing a starter writes its outline into the composer piece by
 * piece, with the blanks that still need an answer lighting up as they

About this pattern

The bridge between a starter chip and a usable prompt. Choosing a template writes its outline into the composer piece by piece — literal wording and blanks alike — with each blank picking up a tinted panel behind it as it lands, so the reader can see both what was inserted for them and what still needs an answer. A caret rides the write head and stops when there is nothing left to add. The words fade and rise a couple of pixels; they never scale, because a template that types itself by growing each word is unreadable while it writes.

Starter prompts above a composerTemplate inserted into a message boxGuided prompt with blanksQuick actions that pre-fill a field

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

    Choosing an action writes a phrased instruction into the input for you.

Related patterns