Component recipes

Component recipe · Claude Design source

Input for Claude Design

Delicate watercolor input with soft borders and translucent background

Component anatomy

Delicate watercolor input with soft borders and translucent background

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "rounded-2xl",
    "border border-[#4a6fa5]/20",
    "bg-white/60",
    "font-light",
    "text-[#3a3a3a]",
    "placeholder:text-[#8a8a8a]",
    "focus:outline-none",
    "transition-all duration-400 ease-out"
  ]
}

Variants and parameters

Default

Tinted

bg-[#4a6fa5]/5

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#4a6fa5]/40",
    "focus:shadow-[0_4px_20px_rgba(74,111,165,0.15)]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe