ZeroGravity UI

Surfacesstable

Gnomon

Pointer light and shadows

The pointer becomes a lamp, and everything inside casts a shadow away from it.

Alpha
Beta
Gamma

Customize

Lightthe pointer is the lamp; the shadows fall away from it
28 pxdistance
30 pxsoftness
0.55depth
color
lift

Usage

TSX
import { Gnomon } from "zerogravity/gnomon"

<Gnomon>
    <Card />
</Gnomon>

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

Props

8 documented props on Gnomon
PropertyTypeDefaultDescription
distancenumber28Throw. Range 0 to 80 px.
softnessnumber30Softness. Range 0 to 80 px.
depthnumber0.55Depth. Range 0 to 1.
colorstring"#05070f"Shadow.
liftbooleantrueLift toward the light.
childrenReactNode—Each direct child casts its own shadow.
disabledbooleanfalsePins the light where it started.
respectReducedMotionbooleantrueHolds the light at rest when the user asks for less motion.

Dependencies

0 external runtime dependencies

Ships with nothing but React.