Component recipes

Component recipe · Claude Design source

Bottom-line Input for Claude Design

Input with bottom border only, floating label style, transparent background, and ultra-subtle focus state. No surrounding frame -- the underline alone defines the field

Component anatomy

Input with bottom border only, floating label style, transparent background, and ultra-subtle focus state. No surrounding frame -- the underline alone defines the field

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "pb-2 pt-0",
    "bg-transparent",
    "border-0 border-b border-[#d4d4cf]",
    "rounded-none",
    "text-[#4a5568]",
    "placeholder:text-[#b0b8c4]/60",
    "font-sans font-light",
    "focus:outline-none",
    "transition-all duration-500 ease-in-out"
  ]
}

Variants and parameters

Default

Mint

border-b-[#98d8c8]/60

Pink

border-b-[#ffb7c5]/60

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-b-[#64b5f6]"
  ],
  "disabled": [
    "opacity-30 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe