Component recipes

Component recipe · Claude Design source

Input for Claude Design

Rounded input with colorful focus ring and playful placeholder

Component anatomy

Rounded input with colorful focus ring and playful placeholder

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "rounded-2xl",
    "border-2 border-[#8338ec]/20",
    "bg-white",
    "text-[#1a1a2e] font-medium",
    "placeholder:text-[#8338ec]/40",
    "focus:outline-none",
    "transition-all duration-300"
  ]
}

Variants and parameters

Default

Pink Focus

border-[#ff006e]/20 placeholder:text-[#ff006e]/40

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#ff006e]",
    "focus:shadow-[0_0_0_4px_rgba(255,0,110,0.15)]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe