Component recipes

Component recipe · Claude Design source

Input for Claude Design

Glassmorphic input for hero section email capture forms

Component anatomy

Glassmorphic input for hero section email capture forms

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-white/10",
    "backdrop-blur-sm",
    "border border-white/30",
    "rounded-full",
    "text-white",
    "placeholder:text-white/60",
    "focus:outline-none",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

Solid

bg-white text-zinc-900 placeholder:text-zinc-400 border-white/0

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:ring-2 focus:ring-white/50",
    "focus:border-white/60"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe