Component recipes

Component recipe · Claude Design source

Speech Bubble for Claude Design

Comic speech bubble container with thick borders and tail

Component anatomy

Comic speech bubble container with thick borders and tail

{
  "element": "div",
  "baseClasses": [
    "bg-[#fffef0]",
    "border-4 border-[#1a1a1a]",
    "rounded-2xl",
    "p-4 md:p-6",
    "relative",
    "font-bold",
    "transition-all duration-150"
  ]
}

Variants and parameters

Speech

rounded-2xl shadow-[4px_4px_0px_0px_rgba(26,26,26,1)]

Thought

rounded-[50%] shadow-[4px_4px_0px_0px_rgba(26,26,26,0.5)]

Shout

rounded-none bg-[#facc15] shadow-[6px_6px_0px_0px_rgba(239,68,68,1)]

Visible

boolean

Interaction states

{
  "hover": [
    "hover:shadow-[2px_2px_0px_0px_rgba(26,26,26,1)]",
    "hover:translate-x-[2px] hover:translate-y-[2px]"
  ]
}

Related base style

Fixed-version source · reviewed before publishingNext component recipe