Component recipes

Component recipe · Claude Design source

Input for Claude Design

Paper-textured input with warm tones and dashed border

Component anatomy

Paper-textured input with warm tones and dashed border

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-white/80",
    "border-2 border-dashed border-[#e85d75]/30",
    "rounded-xl",
    "text-[#4a3728]",
    "placeholder:text-[#5cb8a5]/50",
    "focus:outline-none",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "focus": [
    "focus:border-[#5cb8a5]/60",
    "focus:shadow-[3px_3px_0_rgba(92,184,165,0.15)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe