Component recipes

Component recipe · Claude Design source

Terminal Input for Claude Design

Terminal-style command input with blinking cursor, monospace font, and neon focus glow. Includes a > prompt prefix indicator

Component anatomy

Terminal-style command input with blinking cursor, monospace font, and neon focus glow. Includes a > prompt prefix indicator

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-[#0f0f1a]/80",
    "border border-[#7c3aed]/30",
    "text-[#e0e0ff]",
    "placeholder:text-[#e0e0ff]/30",
    "font-mono",
    "caret-[#06d6a0]",
    "focus:outline-none",
    "transition-all duration-300 ease-out"
  ]
}

Variants and parameters

Default

Cyan

border-[#06d6a0]/40 placeholder:text-[#06d6a0]/30 caret-[#06d6a0]

Pink

border-[#ff006e]/30 placeholder:text-[#ff006e]/30 caret-[#ff006e]

Size

select · 3 options

Show Prompt

boolean

Interaction states

{
  "focus": [
    "focus:border-[#06d6a0]",
    "focus:shadow-[0_0_15px_rgba(6,214,160,0.3),0_0_30px_rgba(6,214,160,0.1)]"
  ],
  "disabled": [
    "opacity-40 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe