Component recipes

Component recipe · Claude Design source

Button for Claude Design

Floating button with blur background for parallax sections

Component anatomy

Floating button with blur background for parallax sections

{
  "element": "button",
  "baseClasses": [
    "font-medium",
    "rounded-full",
    "backdrop-blur-md",
    "transition-all duration-300"
  ]
}

Variants and parameters

Glass

bg-white/20 text-white border border-white/30 hover:bg-white/30

Solid

bg-white text-[#1e3a5f] hover:bg-white/90

Outline

bg-transparent text-white border-2 border-white hover:bg-white/10

Size

select · 3 options

Interaction states

{
  "hover": [
    "hover:scale-105"
  ],
  "active": [
    "active:scale-95"
  ],
  "disabled": [
    "opacity-50 cursor-not-allowed"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe