Introducing Aceternity UI Pro - 70+ premium component packs and templates to build amazing websites.
Logo

Placeholders And Vanish Input

Sliding in placeholders and vanish effect of input on submit

Open in

Ask Aceternity UI Anything

What's the first rule of Fight Club?

Installation

Run the following command

npx shadcn@latest add https://ui.aceternity.com/registry/placeholders-and-vanish-input.json

Props

Prop NameTypeDescription
placeholdersstring[] An array of strings used as placeholders that cycle in the input field.
onChange(e: React.ChangeEvent<HTMLInputElement>) => voidFunction called when the input value changes.
onSubmit(e: React.FormEvent<HTMLFormElement>) => voidFunction called when the form is submitted.

This component is inspired by the Open AI's Hero Section and Rauno's Craft of Vanish Input.

Build websites faster and 10x better than your competitors with Aceternity UI Pro

With the best in class components and templates, stand out from the crowd and get more attention to your website. Trusted by founders and entrepreneurs from all over the world.

Go Pro
Manu was quick to respond, very professional, and delivered a website within a week. Very good job. Looking forward to collaborating again

Asriel Han

Founder, CTO at Advex AI

A product by Aceternity
Building in public at @mannupaaji