felipemenezes098

The Input

Buttons

About

Here is The Input component

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

Code

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

Usage.tsx

import { InfoIcon } from 'lucide-react'

import {
  InputGroup,
  InputGroupAddon,
  InputGroupButton,
  InputGroupInput,
} from '@/components/ui/input-group'
import {
  Popover,
  PopoverContent,
  PopoverTrigger,
} from '@/components/ui/popover'

export default function Input09() {
  return (
    <InputGroup className="max-w-sm">
      <InputGroupInput placeholder="Enter password" type="password" />
      <InputGroupAddon align="inline-end">
        <Popover>
          <PopoverTrigger asChild>
            <InputGroupButton aria-label="Password requirements" size="icon-xs">
              <InfoIcon />
            </InputGroupButton>
          </PopoverTrigger>
          <PopoverContent align="end" className="w-64">
            <p className="font-medium">Password requirements</p>
            <ul className="text-muted-foreground list-inside list-disc space-y-1 text-sm">
              <li>At least 8 characters</li>
              <li>One uppercase letter</li>
              <li>One number or symbol</li>
            </ul>
          </PopoverContent>
        </Popover>
      </InputGroupAddon>
    </InputGroup>
  )
}

More by felipemenezes098

View all
  • Centered Hero with Image Fan

    Centered Hero with Image Fan

    948
  • Editorial Collage Hero

    Editorial Collage Hero

    445
  • Split Hero With Image Cards

    Split Hero With Image Cards

    409
  • Editorial Image Hero

    Editorial Image Hero

    392
  • Scroll 01

    Scroll 01

    355
  • Real Estate Search Hero

    Real Estate Search Hero

    195
  • Editorial Hero

    Editorial Hero

    174
  • Hero with Dashboard Mockup

    Hero with Dashboard Mockup

    125

More in Buttons

View all
  • Texture Button

    Texture Button

    93
  • Eclipse Button

    Eclipse Button

    5
  • App Store Button

    App Store Button

    457
  • Button Group

    Button Group

  • Button

    Button

    32
  • Button

    Button

    14
  • Button

    Button

    65
  • HeroUI Button Group

    HeroUI Button Group

    9