Component recipes

Component recipe · Claude Design source

Input for Claude Design

Bottom-border-only input with bold sans-serif and transparent background

Component anatomy

Bottom-border-only input with bold sans-serif and transparent background

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "rounded-none",
    "border-0 border-b-2 border-[#000000]",
    "bg-transparent",
    "text-[#000000]",
    "placeholder:text-[#000000]/20",
    "font-sans font-bold",
    "focus:outline-none",
    "transition-all duration-100 ease-out"
  ]
}

Variants and parameters

Default

Red Accent

border-[#ff0000] placeholder:text-[#ff0000]/20

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#ff0000]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe