Component recipe · Claude Design source
Input for Claude Design
Soft clay input with inset shadow and rounded corners
Component anatomy
Soft clay input with inset shadow and rounded corners
{
"element": "input",
"baseClasses": [
"w-full",
"bg-white/80",
"rounded-2xl",
"border-none",
"text-gray-800",
"focus:outline-none",
"transition-all duration-200"
]
}Variants and parameters
Default
shadow-[inset_0_4px_8px_rgba(0,0,0,0.08)]
Raised
shadow-[0_4px_8px_rgba(0,0,0,0.1),inset_0_-2px_4px_rgba(0,0,0,0.05)]
Size
select · 3 options
Interaction states
{
"focus": [
"focus:shadow-[inset_0_2px_4px_rgba(0,0,0,0.06),0_0_0_3px_rgba(196,181,253,0.4)]"
],
"disabled": [
"opacity-50 cursor-not-allowed"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe