Component recipe · Claude Design source
Button for Claude Design
Linear-style gradient button with restrained hover opacity
Component anatomy
Linear-style gradient button with restrained hover opacity
{
"element": "button",
"baseClasses": [
"font-medium",
"text-sm",
"rounded-lg",
"transition-opacity duration-150"
]
}Variants and parameters
Primary
bg-gradient-to-r from-[#5e6ad2] to-[#8b5cf6] text-white
Secondary
bg-white/[0.03] text-white border border-white/10
Ghost
bg-transparent text-zinc-400
Size
select · 3 options
Full Width
boolean
Interaction states
{
"hover": [
"hover:opacity-90"
],
"active": [
"active:opacity-80"
],
"disabled": [
"opacity-40 cursor-not-allowed"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe