ONONC

Pixel Card

A surface that dissolves a mosaic of pixels into view on hover or focus.

canvashovera11y

Styled with ONONC's design tokens shadcn add installs them for you.

Interactive

Pixel Pass

Hover to dissolve in.

Customize

Pixels

Pixel size10px
Pixel gap2px
Fill speed4
Variance0.35

Randomness of per-pixel timing and shading.

Style

Color
Corner radius16px
Always on

Props

PropTypeDefaultDescription
children*ReactNodeCard content, layered above the pixel canvas.
pixelSizenumber10Size of each pixel square, in pixels.
gapnumber2Gap between pixels, in pixels.
colorstring"#8b5cf6"Pixel fill color (hex).
speednumber4Fill progress per second (higher fills faster).
variancenumber0.35Randomness of per-pixel timing and shading (0–1).
activebooleanfalseReveal the pixels without a pointer/focus (always on).
radiusnumber16Corner radius in pixels.
labelstringAccessible name for the card.