Component recipes

Component recipe · Claude Design source

Input for Claude Design

Dark input with holographic focus effect

Component anatomy

Dark input with holographic focus effect

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-[#0a0a1f]",
    "border border-purple-500/30",
    "text-white",
    "placeholder:text-white/40",
    "focus:outline-none",
    "rounded-lg",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-purple-400 focus:shadow-[0_0_12px_rgba(168,85,247,0.2)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe