Component recipes

Component recipe · Claude Design source

Input for Claude Design

Linear-style dark input with subtle border and focus accent

Component anatomy

Linear-style dark input with subtle border and focus accent

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "rounded-lg",
    "border border-white/10",
    "bg-white/[0.03]",
    "text-white text-sm",
    "placeholder:text-zinc-600",
    "focus:outline-none",
    "transition-all duration-150"
  ]
}

Variants and parameters

Default

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-[#5e6ad2]/50",
    "focus:bg-white/[0.05]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe