Component recipes

Component recipe · Claude Design source

Input for Claude Design

Clean input with subtle border, white background, and blue focus ring like GitHub forms

Component anatomy

Clean input with subtle border, white background, and blue focus ring like GitHub forms

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-[#f6f8fa]",
    "border border-[#d0d7de]",
    "rounded-md",
    "text-[#24292f]",
    "text-sm",
    "placeholder:text-[#6e7781]",
    "focus:outline-none",
    "transition-all duration-150"
  ]
}

Variants and parameters

Default

Contrast

bg-white border-[#24292f]/20

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "focus": [
    "focus:bg-white",
    "focus:border-[#0969da]",
    "focus:shadow-[0_0_0_3px_rgba(9,105,218,0.3)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed bg-[#f6f8fa]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe