ZeroGravity UI

Surfacesstable

Vellum

Flexible tilt card

A flexible sheet that leans toward the pointer and dents where it rests, lit smooth or in stepped square cells.

Customize

Sheetgeometry of the tilt
9 degtilt
6 pxradius
0.140ease
900 pxperspective
Highlightoptional dent and sheen, smooth or in square cells
highlight
surface
12 pxpixel
0.35dent
0.50sheen
sheenColor

Usage

TSX
import { Vellum } from "zerogravity/vellum"

<Vellum
    radius={6}
    surface="pixel"
>
    <div>Card</div>
</Vellum>

Generated from the controls above. Only props that differ from their defaults are shown.

Props

9 documented props on Vellum
PropertyTypeDefaultDescription
tiltnumber9Tilt. Range 0 to 30 deg.
radiusnumber22Radius. Range 0 to 64 px.
easenumber0.14Ease. Range 0.02 to 1.
perspectivenumber900Perspective. Range 300 to 2000 px.
surface"smooth" | "pixel""smooth"Surface.
pixelnumber12Cell. Range 6 to 32 px.
childrenReactNode—Whatever sits on the sheet.
highlightVellumHighlight | falsetrueDent and sheen settings, or false to remove the highlight (both surfaces) entirely.
pointer{ x: number; y: number }—Presses the sheet at a fixed point, 0 to 1 in its own box, instead of following the pointer.

Dependencies

0 external runtime dependencies

Ships with nothing but React.