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 deg
tilt6 px
radius0.140
ease900 px
perspectiveHighlightoptional dent and sheen, smooth or in square cells
highlightsurface12 px
pixel0.35
dent0.50
sheensheenColorUsage
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
| Property | Type | Default | Description |
|---|---|---|---|
tilt | number | 9 | Tilt. Range 0 to 30 deg. |
radius | number | 22 | Radius. Range 0 to 64 px. |
ease | number | 0.14 | Ease. Range 0.02 to 1. |
perspective | number | 900 | Perspective. Range 300 to 2000 px. |
surface | "smooth" | "pixel" | "smooth" | Surface. |
pixel | number | 12 | Cell. Range 6 to 32 px. |
children | ReactNode | — | Whatever sits on the sheet. |
highlight | VellumHighlight | false | true | Dent 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.