Skip to content

Arrow

The <Arrow> primitive draws a line with an arrowhead pointing from the start point to the end point. Use it for directed relationships, flow diagrams, and annotations.

0.00s / 2.97s · F0
PropTypeDefaultDescription
x1number0X coordinate of the start point
y1number0Y coordinate of the start point
x2number0X coordinate of the end point (arrow tip)
y2number0Y coordinate of the end point (arrow tip)
strokestring'currentColor'Stroke color
strokeWidthnumber1Width of the stroke
headSizenumber8Size of the arrowhead in pixels
strokeDasharraystringundefinedDash pattern (e.g. "6 3")
opacitynumber1Opacity from 0 to 1
import { Player, FadeIn, Arrow } from '@elucim/core';
<Player width={500} height={300} fps={30} durationInFrames={60}>
<FadeIn duration={20}>
<Arrow x1={50} y1={150} x2={200} y2={150} stroke="#6c5ce7" strokeWidth={2} headSize={10} />
</FadeIn>
<FadeIn duration={20}>
<Arrow x1={230} y1={150} x2={350} y2={80} stroke="#ff6b6b" strokeWidth={2} headSize={8} />
</FadeIn>
</Player>