Component recipes

Component recipe · Claude Design source

Input for Claude Design

Hairline-bordered archive search input with a thin academic-blue focus ring

Component anatomy

Hairline-bordered archive search input with a thin academic-blue focus ring

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-white",
    "border border-[#E5E7EB]",
    "rounded-md",
    "font-serif",
    "text-[#1F2933]",
    "placeholder:text-[#9CA3AF]",
    "focus:outline-none",
    "transition-colors duration-150"
  ]
}

Variants and parameters

Default

Underline

border-0 border-b border-[#E5E7EB] rounded-none px-0 bg-transparent

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#2A7AE2]",
    "focus:ring-1 focus:ring-[#2A7AE2]/30"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe