Component recipe · Claude Design source
Command Button for Claude Design
Button styled as an executable shell command
Component anatomy
Button styled as an executable shell command
{
"element": "button",
"baseClasses": [
"font-mono",
"rounded-sm",
"transition-colors duration-150"
]
}Variants and parameters
Primary
bg-[#4AF626] text-[#0A0E12] font-bold
Secondary
bg-transparent text-[#4AF626] border border-[#1F2937]
Command
bg-transparent text-[#8BE9FD] border border-[#8BE9FD]/40
Danger
bg-transparent text-[#FF79C6] border border-[#FF79C6]/40
Size
select · 3 options
Full Width
boolean
Interaction states
{
"hover": [
"hover:bg-[#4AF626]/10"
],
"active": [
"active:translate-y-px"
],
"focus": [
"focus:outline-none focus:ring-1 focus:ring-[#4AF626]/60"
],
"disabled": [
"opacity-40 cursor-not-allowed"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe