10% off on all-access. Use code SUPER10.
    d :
    h :
    m :
    Logo

    Placeholders And Vanish Input

    Sliding in placeholders and vanish effect of input on submit

    Ask Aceternity UI Anything

    What's the first rule of Fight Club?

    Installation

    Run the following command

    npx shadcn@latest add @aceternity/placeholders-and-vanish-input

    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

    Next.js 15, Tailwind CSS v4 and Motion for react powered templates

    200+ templates and blocks combined

    Ready to copy paste component blocks, save days of development time

    Aceternity UI Pro Demo - Light Mode
    Logo
    Aceternity UI

    Access an ever-growing collection of premium, meticulously crafted templates and Component Blocks.

    A product by Aceternity
    Building in public at @mannupaaji

    © 2026 Aceternity Labs LLC. All Rights Reserved.