ZeroGravity UI

Pointerexperimental

Facet

A faceted surface whose colour migrates across the slats instead of switching.

Customize

Surfacefacet size and pointer lighting
120 pxcell
14variation
0.70intensity
7seed
Ambient flowinterval picks the next colour, duration is the transition
ambient
paletteName
7000 msambientInterval
5200 msambientDuration

Usage

TSX
<Facet>
    <div>Hero copy</div>
</Facet>

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

Props

9 documented props on Facet
PropertyTypeDefaultDescription
cellnumber120Facet size. Range 40 to 320 px.
variationnumber14Tone variation. Range 0 to 40.
intensitynumber0.7Light. Range 0 to 1.4.
seednumber7Seed. Range 1 to 99.
ambientbooleantrueEnabled.
ambientIntervalnumber7000Interval. Range 1200 to 20000 ms.
ambientDurationnumber5200Duration. Range 400 to 14000 ms.
childrenReactNode—Content laid over the surface.
palettestring[]—Colours the ambient flow moves between.

Dependencies

0 external runtime dependencies

Ships with nothing but React.

Experimental: still under evaluation and not part of the published package yet.