Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Vanish Input

ProNew

An input with rotating hints whose text dissolves into dust when you send it.

Installation

pnpm dlx shadcn@latest add @viewport/vanish-input

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
label*string

Accessible name for the field. The cycling placeholders are decorative.

—
placeholders*string[]

Hints that rotate while the field is empty.

—
onSubmit(value: string) => void

Called with the trimmed text as it starts to dissolve.

—
intervalnumber

Milliseconds each placeholder stays up.

3200
durationnumber

Milliseconds the sweep takes to cross the text.

520
classNamestring—

Accessibility

  • A real text input with a label you provide; hints are decorative.
  • Sending is announced through a status region.
  • Clears instantly, with no particles, under reduced motion.