Component recipe · Claude Design source
Katana Slash for Claude Design
Decorative divider with diagonal slash line and neon glow, evoking a katana cut
Component anatomy
Decorative divider with diagonal slash line and neon glow, evoking a katana cut
{
"element": "div",
"baseClasses": [
"relative",
"w-full",
"h-3",
"my-6",
"rotate-[-2deg]",
"bg-[linear-gradient(105deg,#e2e8f0_0%,#94a3b8_30%,#e2e8f0_50%,#64748b_70%,#e2e8f0_100%)]",
"[clip-path:polygon(0_30%,10%_60%,20%_20%,30%_50%,40%_10%,50%_40%,60%_5%,70%_35%,80%_15%,90%_45%,100%_25%,100%_75%,90%_55%,80%_85%,70%_65%,60%_95%,50%_60%,40%_90%,30%_50%,20%_80%,10%_40%,0_70%)]",
"transition-all duration-300 ease-in-out"
]
}Variants and parameters
Red
bg-[#dc2626] shadow-[0_0_12px_rgba(220,38,38,0.6),0_0_4px_rgba(220,38,38,0.8)]
Purple
bg-[#a020f0] shadow-[0_0_12px_rgba(160,32,240,0.6),0_0_4px_rgba(160,32,240,0.8)]
Blue
bg-[#38bdf8] shadow-[0_0_12px_rgba(56,189,248,0.6),0_0_4px_rgba(56,189,248,0.8)]
Visible
boolean
Interaction states
{
"hover": [
"hover:shadow-[0_0_20px_rgba(220,38,38,0.8)]",
"hover:scale-x-105"
]
}Related base style
Fixed-version source · reviewed before publishingNext component recipe