Component recipes

Component recipe · Claude Design source

Input for Claude Design

Clean geometric input with retro mid-century styling

Component anatomy

Clean geometric input with retro mid-century styling

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-[#f5f0e1]",
    "border-b-2 border-b-[#2a6e5e]",
    "border-t-0 border-l-0 border-r-0",
    "rounded-none",
    "text-[#1a1a1a]",
    "placeholder:text-[#2a6e5e]/40",
    "focus:outline-none",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

Size

select · 3 options

Full Width

boolean

Interaction states

{
  "focus": [
    "focus:border-b-[#e8572a]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe