Component recipes

Component recipe · Claude Design source

Filter Input for Claude Design

Small filter input for data table toolbars

Component anatomy

Small filter input for data table toolbars

{
  "element": "input",
  "baseClasses": [
    "bg-white",
    "rounded",
    "border border-[#e2e8f0]",
    "text-[#1e293b]",
    "placeholder:text-[#94a3b8]",
    "focus:outline-none",
    "transition-colors duration-150"
  ]
}

Variants and parameters

Default

Filled

bg-[#f8fafc] border-[#e2e8f0]

Size

select · 3 options

Interaction states

{
  "focus": [
    "focus:ring-1 focus:ring-[#3b82f6]",
    "focus:border-[#3b82f6]"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed bg-[#f8fafc]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe