Skip to main content
Version: Next

AnimatedBeam API

import { AnimatedBeam } from '@editora/ui-react';

Props​

PropTypeDescription
animationAnimatedBeamAnimation
autoFitboolean
beamFactornumber | string
beamWidthnumber | string
childrenReact.ReactNode
colorEndstring
colorStartstring
columnGapnumber | string
columnsnumber | string
curveAnimatedBeamCurve
delaynumber | string
directionAnimatedBeamDirection
durationnumber | string
elevationAnimatedBeamElevation
glowboolean
hubSizenumber | string
minHeightnumber | string
nodeEffectAnimatedBeamNodeEffect
nodeSizenumber | string
paddingnumber | string
pathboolean
pausedboolean
radiusnumber | string
repeatboolean
reverseboolean
rowGapnumber | string
rowsnumber | string
sizeAnimatedBeamSize
staggernumber | string
toneAnimatedBeamTone
trailColorstring
trailWidthnumber | string
variantAnimatedBeamVariant

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

AnimatedBeam.Node props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.ReactNode
columnnumber | string
nodeIdstring
rownumber | string
sizenumber | string

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

AnimatedBeam.Hub props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.ReactNode
columnnumber | string
nodeIdstring
rownumber | string
sizenumber | string

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

AnimatedBeam.Connection props​

PropTypeDescription
askeyof JSX.IntrinsicElements
beamFactornumber | string
beamWidthnumber | string
colorEndstring
colorStartstring
curveAnimatedBeamCurve
delaynumber | string
directionAnimatedBeamDirection
durationnumber | string
from (required)string
reverseboolean
to (required)string
toneAnimatedBeamTone
trailWidthnumber | string

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-animated-beam>​

AnimatedBeam renders the ui-animated-beam custom element from @editora/ui-core, which can also be used without React.

Attributes: animation, auto-fit, beam-factor, beam-width, color-end, color-start, column-gap, columns, curve, delay, direction, duration, elevation, glow, hub-size, min-height, node-effect, node-size, padding, path, paused, radius, repeat, reverse, row-gap, rows, size, stagger, tone, trail-color, trail-width, variant