ZeroGravity UI

Pointerstable

Vellum

A sheet that leans toward the pointer, with an optional dent and sheen.

Customize

Sheetgeometry of the tilt
9 degtilt
22 pxradius
0.140ease
900 pxperspective
Highlightoptional dent and sheen
highlight
0.35dent
0.50sheen
sheenColor

Usage

TSX
import { Vellum } from "zerogravity"

<Vellum>
    <div>Card</div>
</Vellum>

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

Props

6 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.
childrenReactNode—Whatever sits on the sheet.
highlightVellumHighlight | falsefalseDent and sheen settings, or false to switch both off.

Dependencies

0 external runtime dependencies

Ships with nothing but React.