tochny

Glass Label

Forms

About

A form label styled in uppercase monospace tracking, built on the Radix UI Label primitive for pairing with inputs, switches, and checkboxes.

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

Code

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

Usage.tsx

import { GlassLabel } from "@/components/ui/glass-label";

export default function GlassLabelDemo() {
  return (
    <div className="flex w-full max-w-xs items-center justify-center bg-background p-10">
      <div className="grid w-full gap-1.5">
        <GlassLabel htmlFor="email">Email</GlassLabel>
        <input
          id="email"
          type="email"
          placeholder="[email protected]"
          className="border-border bg-background text-foreground rounded-md border px-3 py-2 text-sm outline-none focus-visible:ring-1 focus-visible:ring-ring"
        />
      </div>
    </div>
  );
}

Dependencies

More by tochny

View all
  • Glass Pagination

    Glass Pagination

    5
  • Glass Calendar

    Glass Calendar

  • Glass Context Menu

    Glass Context Menu

  • Glass Menubar

    Glass Menubar

  • Glass Progress

    Glass Progress

  • Glass Skeleton

    Glass Skeleton

More in Forms

View all
  • Premium Auth

    Premium Auth

    593
  • Contact Form

    Contact Form

    28
  • Form

    Form

    4
  • Login 1

    Login 1

    70
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form [react-aria-components]

    Form [react-aria-components]

    19