Component recipes

Component recipe · Claude Design source

Input for Claude Design

Visitor-register underline input: transparent field over a hairline that inks on focus

Component anatomy

Visitor-register underline input: transparent field over a hairline that inks on focus

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-transparent",
    "rounded-none",
    "border-0 border-b border-[#E8E6E1]",
    "text-[#1A1A1A]",
    "placeholder:text-xs placeholder:uppercase placeholder:tracking-[0.2em] placeholder:text-[#8A8A85]",
    "focus:outline-none",
    "transition-colors duration-300"
  ]
}

Variants and parameters

Underline

Boxed

border border-[#E8E6E1] px-4

Size

select · 3 options

Full Width

boolean

Interaction states

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

Related base style

Fixed-version source · reviewed before publishingNext component recipe