Component recipe · Claude Design source
Button for Claude Design
Dynamic offset button with sharp edges and hover displacement
Component anatomy
Dynamic offset button with sharp edges and hover displacement
{
"element": "button",
"baseClasses": [
"font-bold",
"uppercase",
"tracking-widest",
"transition-all duration-200"
]
}Variants and parameters
Primary
bg-[#0f0f0f] text-white hover:-translate-x-1 hover:-translate-y-1 hover:shadow-[4px_4px_0px_#ff3366]
Secondary
bg-white text-[#0f0f0f] border-2 border-[#0f0f0f] hover:-translate-x-1 hover:-translate-y-1 hover:shadow-[4px_4px_0px_#0f0f0f]
Accent
bg-[#ff3366] text-white hover:-translate-x-1 hover:-translate-y-1 hover:shadow-[4px_4px_0px_#0f0f0f]
Size
select · 3 options
Interaction states
{
"hover": [
"hover:-translate-x-1",
"hover:-translate-y-1"
],
"active": [
"active:translate-x-0 active:translate-y-0 active:shadow-none"
],
"disabled": [
"opacity-50 cursor-not-allowed"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe