Component recipes

Component recipe · Claude Design source

Input for Claude Design

Apple-style input with subtle background and rounded corners

Component anatomy

Apple-style input with subtle background and rounded corners

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

Variants and parameters

Default

Outlined

bg-white border border-gray-200

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:ring-2 focus:ring-[#0071e3]/30",
    "focus:bg-white"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe