Component recipes

Component recipe · Claude Design source

Input for Claude Design

Form input with sharp borders and focus shadow

Component anatomy

Form input with sharp borders and focus shadow

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "border-2 md:border-4 border-black",
    "rounded-none",
    "bg-white",
    "font-mono",
    "focus:outline-none",
    "transition-shadow"
  ]
}

Variants and parameters

Default

Filled

bg-gray-50

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:shadow-[4px_4px_0px_0px_rgba(0,0,0,1)]",
    "md:focus:shadow-[8px_8px_0px_0px_rgba(0,0,0,1)]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed bg-gray-100"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe