Component recipes

Component recipe · Claude Design source

Input for Claude Design

Clean bordered input for holy grail layout toolbar and forms

Component anatomy

Clean bordered input for holy grail layout toolbar and forms

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-gray-50",
    "border border-gray-200",
    "rounded-lg",
    "text-sm text-[#1e293b]",
    "placeholder:text-gray-400",
    "focus:outline-none",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

White

bg-white

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:ring-2 focus:ring-[#3b82f6]/20",
    "focus:border-[#3b82f6]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed bg-gray-100"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe