Component recipes

Component recipe · Claude Design source

Input for Claude Design

Clean input field with subtle border and Fluent-style focus indicator

Component anatomy

Clean input field with subtle border and Fluent-style focus indicator

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "rounded-md",
    "border border-[#8a8886]",
    "bg-white",
    "font-sans",
    "text-[#323130]",
    "placeholder:text-[#a19f9d]",
    "focus:outline-none",
    "transition-all duration-150 ease-out"
  ]
}

Variants and parameters

Default

Filled

bg-[#f3f2f1] border-transparent

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#0078d4]",
    "focus:shadow-[0_0_0_1px_rgba(0,120,212,0.3)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed bg-[#f3f2f1]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe