AnimatedBeam API
import { AnimatedBeam } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
animation | AnimatedBeamAnimation | |
autoFit | boolean | |
beamFactor | number | string | |
beamWidth | number | string | |
children | React.ReactNode | |
colorEnd | string | |
colorStart | string | |
columnGap | number | string | |
columns | number | string | |
curve | AnimatedBeamCurve | |
delay | number | string | |
direction | AnimatedBeamDirection | |
duration | number | string | |
elevation | AnimatedBeamElevation | |
glow | boolean | |
hubSize | number | string | |
minHeight | number | string | |
nodeEffect | AnimatedBeamNodeEffect | |
nodeSize | number | string | |
padding | number | string | |
path | boolean | |
paused | boolean | |
radius | number | string | |
repeat | boolean | |
reverse | boolean | |
rowGap | number | string | |
rows | number | string | |
size | AnimatedBeamSize | |
stagger | number | string | |
tone | AnimatedBeamTone | |
trailColor | string | |
trailWidth | number | string | |
variant | AnimatedBeamVariant |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
AnimatedBeam.Node props
| Prop | Type | Description |
|---|---|---|
as | keyof JSX.IntrinsicElements | |
children | React.ReactNode | |
column | number | string | |
nodeId | string | |
row | number | string | |
size | number | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
AnimatedBeam.Hub props
| Prop | Type | Description |
|---|---|---|
as | keyof JSX.IntrinsicElements | |
children | React.ReactNode | |
column | number | string | |
nodeId | string | |
row | number | string | |
size | number | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
AnimatedBeam.Connection props
| Prop | Type | Description |
|---|---|---|
as | keyof JSX.IntrinsicElements | |
beamFactor | number | string | |
beamWidth | number | string | |
colorEnd | string | |
colorStart | string | |
curve | AnimatedBeamCurve | |
delay | number | string | |
direction | AnimatedBeamDirection | |
duration | number | string | |
from (required) | string | |
reverse | boolean | |
to (required) | string | |
tone | AnimatedBeamTone | |
trailWidth | number | 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