deepraj21

Glass Input

Forms 1

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 Message

    Glass Message

    5
  • Glass Sidebar

    Glass Sidebar

    3
  • Glass QR Code

    Glass QR Code

    2
  • Glass Toolbar

    Glass Toolbar

    2
  • Glass Select

    Glass Select

    2
  • Glass Dock

    Glass Dock

    2
  • Glass Date Picker

    Glass Date Picker

    2
  • Glass Notification

    Glass Notification

    1

More in Forms

View all
  • Premium Auth

    Premium Auth

    518
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    72
  • Login 1

    Login 1

    52
  • Authentication Card

    Authentication Card

    48
  • Form

    Form

    16
  • Login Card

    Login Card

    6
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K