Component recipes

Component recipe · Claude Design source

Input for Claude Design

Soft rounded input with pink focus ring

Component anatomy

Soft rounded input with pink focus ring

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-[#FFF7ED]",
    "border border-pink-200",
    "text-gray-800",
    "placeholder:text-gray-400",
    "focus:outline-none",
    "rounded-full",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-pink-300 focus:ring-2 focus:ring-pink-200"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe