Component recipes

Component recipe · Claude Design source

Input for Claude Design

Dark background input with glowing border on focus

Component anatomy

Dark background input with glowing border on focus

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "px-5 py-4",
    "bg-white/5",
    "border-2 border-purple-500/50",
    "rounded-xl",
    "text-white",
    "placeholder:text-white/40",
    "focus:outline-none",
    "transition-all duration-300"
  ]
}

Variants and parameters

Default

With Button

pr-24

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-cyan-400",
    "focus:shadow-[0_0_20px_rgba(34,211,238,0.3)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe