Component recipes

Component recipe · Claude Design source

Input for Claude Design

Compact search input for dashboard toolbar and filter panels

Component anatomy

Compact search input for dashboard toolbar and filter panels

{
  "element": "input",
  "baseClasses": [
    "w-full",
    "bg-gray-50",
    "border border-gray-200",
    "rounded-lg",
    "text-sm text-[#111827]",
    "placeholder:text-gray-400",
    "focus:outline-none",
    "transition-all duration-200"
  ]
}

Variants and parameters

Default

White

bg-white

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:ring-2 focus:ring-[#6366f1]/20",
    "focus:border-[#6366f1]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed bg-gray-100"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe