Component recipes

Component recipe · Claude Design source

Input for Claude Design

Bare underline input with mono uppercase text; the hairline turns orange on focus

Component anatomy

Bare underline input with mono uppercase text; the hairline turns orange on focus

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-transparent",
    "rounded-none",
    "border-0 border-b border-[#0A0A0A]/30",
    "font-mono uppercase tracking-widest",
    "text-[#0A0A0A]",
    "placeholder:text-[#71717A]",
    "focus:outline-none",
    "transition-colors duration-200"
  ]
}

Variants and parameters

Underline

Boxed

border border-[#0A0A0A]/30 px-4

Inverted

border-[#FAFAF8]/30 text-[#FAFAF8] placeholder:text-[#FAFAF8]/40

Size

select · 3 options

Interaction states

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

Related base style

Fixed-version source · reviewed before publishingNext component recipe