Component recipes

Component recipe · Claude Design source

Input for Claude Design

RPG menu input with beveled inset shadow and blue border styling

Component anatomy

RPG menu input with beveled inset shadow and blue border styling

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-slate-900",
    "border-2 border-blue-700",
    "rounded-md",
    "text-[#f0f9ff]",
    "placeholder:text-blue-300/30",
    "focus:outline-none",
    "shadow-[inset_0_2px_4px_rgba(0,0,0,0.3)]",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

Gold

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

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:border-blue-400",
    "focus:ring-1 focus:ring-blue-400/30"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed bg-slate-950"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe