tom

Label Input

Forms 15

About

Input field with floating label and password visibility toggle.

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

Code

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

Usage.tsx

import LabelInput from "@/components/ui/label-input"

export default function LabelInputDemo() {
  return (
    <div className="flex flex-col items-center justify-center min-h-[400px] gap-4 p-8">
      <label className="flex flex-col gap-2 w-full max-w-sm">
        <span className="text-sm font-medium text-muted-foreground">Try typing something...</span>
        <input 
          type="text" 
          placeholder="Type here..."
          className="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm"
        />
        <LabelInput 
          
        />
      </label>
    </div>
  )
}

Dependencies

More by tom

View all
  • Shimmer Text

    Shimmer Text

    1.1K
  • Animated Gradient

    Animated Gradient

    1.1K
  • Special Text

    Special Text

    1.1K
  • Tilt Card

    Tilt Card

    913
  • Marquee

    Marquee

    812
  • Text Marquee

    Text Marquee

    761
  • QR Code

    QR Code

    484
  • Blur Reveal

    Blur Reveal

    401

More in Forms

View all
  • Form

    Form

    7
  • Login 2

    Login 2

    16
  • Contact Form

    Contact Form

    33
  • Contact Card

    Contact Card

    1.1K
  • Book A Demo 1

    Book A Demo 1

    95
  • Premium Auth

    Premium Auth

    614
  • Onboarding Stepper

    Onboarding Stepper

    13
  • Authentication Card

    Authentication Card

    52