Component recipes

Component recipe · Claude Design source

Input for Claude Design

Search or form input with green focus ring

Component anatomy

Search or form input with green focus ring

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-white",
    "rounded-lg",
    "border border-[#e3e3e3]",
    "text-[#1a1a1a]",
    "placeholder:text-[#9ca3af]",
    "focus:outline-none",
    "transition-colors duration-200"
  ]
}

Variants and parameters

Default

Filled

bg-[#f7f7f8] border-[#e3e3e3]

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:ring-2 focus:ring-[#008060]/20",
    "focus:border-[#008060]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed bg-[#f7f7f8]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe