mirukullacode

Expand Input

Buttons 9

About

An animated pill-shaped subscribe button that expands into an email input, shows a loading spinner on submit, then a drawn checkmark on success.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Expand Input to your project and fits it to your theme.

Code

How Expand Input is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { ExpandInput } from "@/components/ui/expand-input";

export default function ExpandInputDemo() {
  return (
    <div className="flex min-h-[400px] w-full items-center justify-center bg-background p-10">
      <ExpandInput
        label="Subscribe"
        placeholder="you@example.com"
        successLabel="You're in!"
        onSubmit={(email) => new Promise((resolve) => setTimeout(resolve, 800))}
      />
    </div>
  );
}

Dependencies

More by mirukullacode

View all
  • Chart Line

    Chart Line

    189
  • Tweenly AI Recorder

    Tweenly AI Recorder

    107
  • Tweenly Chart KPI

    Tweenly Chart KPI

    72
  • Animated Bar Chart

    Animated Bar Chart

    66
  • Tweenly Hero Background

    Tweenly Hero Background

    55
  • Tweenly Chart Radial

    Tweenly Chart Radial

    40
  • Tweenly Image Arc

    Tweenly Image Arc

    37
  • Tweenly Curved Carousel

    Tweenly Curved Carousel

    36

More in Buttons

View all
  • Button

    Button

    166
  • Texture Button

    Texture Button

    121
  • Button

    Button

    21
  • Figma File Button

    Figma File Button

    39
  • Native Button

    Native Button

    12
  • Button

    Button

    88
  • HeroUI Button Group

    HeroUI Button Group

    11
  • Great UI Button

    Great UI Button

    19