Component recipes

Component recipe · Claude Design source

Input for Claude Design

Soft input with no border, subtle background, and focus ring

Component anatomy

Soft input with no border, subtle background, and focus ring

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

Variants and parameters

Default

White

bg-white shadow-sm

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:ring-2 focus:ring-indigo-500/50",
    "focus:bg-white"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe