ZeroGravity UI

Mediastable

Elemental

An animated edge that wraps any content in electricity or fire.

electricUnstable energy running the edge

Customize

Elementwhich edge the wrapper draws
variant
color
16 pxradius
Energyhow hard the edge works
1.00intensity
1.00speed
particles
cursorEffect

Usage

TSX
import { Elemental } from "zerogravity"

<Elemental>
    <Card />
</Elemental>

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

Props

10 documented props on Elemental
PropertyTypeDefaultDescription
variant"electric" | "fire""electric"Variant.
colorstring | null""Custom colour.
radiusnumber16Radius. Range 0 to 60 px.
intensitynumber1Intensity. Range 0 to 2.
speednumber1Speed. Range 0.25 to 3.
particlesbooleantrueParticles.
cursorEffectbooleanfalseCursor effect.
childrenReactNode—Whatever the edge wraps. It stays fully interactive.
disabledbooleanfalseFreeze the edge in its static state.
respectReducedMotionbooleantrueFall back to the static edge when the user asks for less motion.

Dependencies

0 external runtime dependencies

Ships with nothing but React.