Component recipe · Claude Design source
Ribbon Banner for Claude Design
Decorative ribbon-shaped banner
Component anatomy
Decorative ribbon-shaped banner
{
"element": "div",
"baseClasses": [
"inline-flex items-center justify-center",
"font-sans font-semibold",
"px-6 py-2",
"rounded-none",
"[clip-path:polygon(8px_0%,calc(100%-8px)_0%,100%_50%,calc(100%-8px)_100%,8px_100%,0%_50%)]",
"relative",
"transition-all duration-300 ease-in-out"
]
}Variants and parameters
Pink
bg-[#ffb7c5] text-white shadow-[0_3px_10px_#ffb7c540] shadow-[0_3px_0_rgba(0,0,0,0.1)]
Lavender
bg-[#c4b5fd] text-white shadow-[0_3px_10px_#c4b5fd40] shadow-[0_3px_0_rgba(0,0,0,0.1)]
Gold
bg-[#fde68a] text-[#4a5568] shadow-[0_3px_10px_#fde68a40] shadow-[0_3px_0_rgba(0,0,0,0.1)]
Visible
boolean
Interaction states
{
"hover": [
"hover:scale-105",
"hover:shadow-[0_5px_15px_#ffb7c560]"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe