yagnikbarasiya2306@gmail.com

Web · Prompt composer

Vanish

Messages that turn to particles and rebuild.

A prompt composer that enhances your textarea: sent text breaks into particles that arc into the chat and rebuild as your message, with cycling placeholders and a light that runs around the field while the reply is written.

Platform
Any modern browser · any framework
Size
4.5 KB gzip
Dependencies
None
Licence
MIT · free for client work

Demo

A recording of the demo. Open it in a new tab

What it does

  1. 01

    Particles are sampled from the real text, wrapped exactly as the textarea wraps it

  2. 02

    Each particle lands at its place in the new message, even if the thread moves mid-flight

  3. 03

    Cycling placeholders, auto-grow, and a Stop button while generating

  4. 04

    IME-safe Enter, a capped particle count and a fade for reduced motion

Use it

Get the filesbash
git clone https://github.com/YagnikBarasiya23/vanish-prompt-input.git
# copy vanish.js and vanish.css into your project
Examplejs
import Vanish from './vanish.js';

const composer = new Vanish(document.querySelector('textarea'), {
  placeholders: ['Plan a post for Saturday', 'Why did reach drop?'],
  target: () => thread.lastElementChild,
});

composer.on('submit', async text => {
  addMessage(text);
  composer.generating(true);
  await askYourModel(text);
  composer.generating(false);
});

Every option, the technique behind the motion and the accessibility notes are in the README on GitHub

More components

All 15
  • Flutter

    09 · Arc gauge

    Arcline

    Progress that springs, not ticks.

    • Single Dart file
    • No dependencies
    • Free · MIT
  • Flutter

    10 · Ruler picker

    Notch

    Scroll to a number, feel every step.

    • Single Dart file
    • No dependencies
    • Free · MIT

Get in touch

Open for freelance projects, contract roles and collaborations — mobile apps and full-stack products in particular. WhatsApp gets the fastest reply.

Based in
Rajkot, Gujarat, India
Elsewhere