Component recipes

Component recipe · Claude Design source

Input for Claude Design

Notebook-style input with dashed border on paper background

Component anatomy

Notebook-style input with dashed border on paper background

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "rounded-sm",
    "border-2 border-dashed border-[#2c2c2c]",
    "bg-[#fffef5]",
    "text-[#2c2c2c]",
    "placeholder:text-[#2c2c2c]/30",
    "font-sans",
    "focus:outline-none",
    "transition-all duration-200 ease-in-out"
  ]
}

Variants and parameters

Default

Teal

border-[#4ecdc4] placeholder:text-[#4ecdc4]/30

Red

border-[#ff6b6b] placeholder:text-[#ff6b6b]/30

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#ff6b6b]",
    "focus:shadow-[2px_2px_0px_#ffd93d]",
    "focus:rotate-[-0.3deg]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe