Micro-interactions

Blueprint Card

A technical-drawing card — dashed envelope, accent rules, corner nodes, and a soft glow that draw in on mount.

Install

bun add clsx tailwind-merge

Then copy 2 files into your project:

  • components/registry/blueprint-card/blueprint-card.tsx
  • lib/utils.ts

Props

PropTypeDefaultDescription
accentColorstring (hex)"#a855f7"Accent color for the frame, nodes, and glow.
dashedbooleantrueDashed outer border; solid when off.
dotSizenumber4Diameter of the corner nodes.
glowIntensitynumber0.15Strength of the bottom gradient glow.
animatedbooleantrueDraw the frame in on mount.
durationnumber0.6Draw-in animation duration.

What It Demonstrates

Line drawing
An SVG path that draws itself in, like an invisible pen tracing it.
Enter / Exit
The animation an element plays when it's added to or removed from the screen.
Stagger
Animate several items one after another with a small delay between each, creating a cascade.

Related Components

Appears In