ZeroGravity UI

Scenesstable

Meadow

A living pastel hero scene that drifts, bobs and flutters around your content.

Meadow

Customize

Lifetheme previews the scene; local time overrides it unless the theme is space
density
5seed
theme
timeAware
animated
trails
Creaturescounts are clamped; fireflies need night and planets need space
5bees
5butterflyCount
0ghostCount
2balloonCount
26fireflyCount
9planetCount
Interaction and eventspointer reactions need a fine pointer; events stay rare by default
interactive
events
eventFrequency
Landscapethe scenery behind everything
sun
clouds
hills
flowers
Castwhich characters are allowed on stage
balloon
butterflies
birds
mascots
stars
comets
planets
rockets
ufos

Usage

TSX
import { Meadow } from "zerogravity"

<Meadow>
    <div>Hero copy</div>
</Meadow>

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

Props

17 documented props on Meadow
PropertyTypeDefaultDescription
density"calm" | "cosy" | "lively""cosy"Density.
seednumber5Seed. Range 1 to 99.
theme"day" | "sunrise" | "sunset" | "night" | "space""day"Theme.
timeAwarebooleanfalseFollow local time.
animatedbooleantrueAnimated.
trailsbooleantrueMascot trails.
beesnumber5Bees. Range 0 to 12.
butterflyCountnumber5Butterflies. Range 0 to 16.
ghostCountnumber0Extra ghosts. Range 0 to 12.
balloonCountnumber2Extra balloons. Range 0 to 8.
fireflyCountnumber26Fireflies (night). Range 0 to 40.
planetCountnumber9Planets (space). Range 0 to 20.
interactivebooleanfalseReact to the pointer.
eventsbooleantrueAmbient events.
eventFrequency"rare" | "normal" | "frequent""rare"Event frequency.
childrenReactNode—Content centred inside the scene.
sceneMeadowScene{}Per-element switches, for example { birds: false, flowers: false }.

Dependencies

0 external runtime dependencies

Ships with nothing but React.