deepraj21

Glass Input

Forms 2

About

A pill-shaped liquid-glass text input with slots for a leading icon and a trailing adornment, built for search bars and capsule forms.

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

Code

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

Usage.tsx

"use client";

import GlassInput from "@/components/ui/glass-input";
import { Search } from "lucide-react";

export default function GlassInputDemo() {
  return (
    <div className="flex min-h-[220px] w-full items-center justify-center bg-background p-10">
      <GlassInput
        type="search"
        placeholder="Search Opaline..."
        startIcon={<Search />}
        endAdornment={
          <kbd className="rounded-md border border-border/60 bg-muted px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground">
            ⌘K
          </kbd>
        }
        className="max-w-sm"
      />
    </div>
  );
}

Dependencies

More by deepraj21

View all
  • Glass Sidebar

    Glass Sidebar

    12
  • Glass Message

    Glass Message

    10
  • Glass Date Picker

    Glass Date Picker

    5
  • Glass Notification

    Glass Notification

    4
  • Glass QR Code

    Glass QR Code

    3
  • Glass Terminal

    Glass Terminal

    3
  • Glass Select

    Glass Select

    3
  • Glass Toolbar

    Glass Toolbar

    2

More in Forms

View all
  • Contact Card

    Contact Card

    1K
  • Premium Auth

    Premium Auth

    524
  • Book A Demo 1

    Book A Demo 1

    73
  • Login 1

    Login 1

    53
  • Form

    Form

    137
  • Card Studio

    Card Studio

    41
  • SignInPage

    SignInPage

    667
  • Split Sign In Form

    Split Sign In Form

    46