Component recipes

Component recipe · Claude Design source

Input for Claude Design

Understated input with bottom ink-stroke border

Component anatomy

Understated input with bottom ink-stroke border

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-transparent",
    "border-b border-[#2c2c2c]/30",
    "text-[#2c2c2c]",
    "placeholder:text-[#a89279]/50",
    "focus:outline-none",
    "rounded-none",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

Size

select · 3 options

Interaction states

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

Related base style

Fixed-version source · reviewed before publishingNext component recipe