<Arrow />
Part of the @remotion/shapes package.
Renders an SVG element containing an arrow shape.
Explorer
Example
src/Arrow.tsximport {Arrow } from '@remotion/shapes'; import {AbsoluteFill } from 'remotion'; export constMyComposition = () => { return ( <AbsoluteFill style ={{backgroundColor : 'white',justifyContent : 'center',alignItems : 'center', }} > <Arrow length ={300}headWidth ={185}headLength ={120}shaftWidth ={80}fill ="red"direction ="right" /> </AbsoluteFill > ); };
Props
length
number
The total length of the arrow along its direction axis. Default 300.
headWidth
number
The width of the arrowhead at its widest point. Default 185.
headLength
number
The length of the arrowhead portion. Default 120.
shaftWidth
number
The width of the arrow shaft. Default 80.
direction
"left" | "right" | "up" | "down"
The direction the arrow points. Default right.
cornerRadius
number
Rounds the corner using an arc. Similar to CSS's border-radius.
fill
string
The color of the shape.
stroke
string
The color of the stroke. Should be used together with strokeWidth.
strokeWidth
string
The width of the stroke. Should be used together with stroke.
style
string
CSS properties that will be applied to the <svg> tag, or to the generated <canvas> if effects are passed. Default style: overflow: 'visible'
pathStyle
string
CSS properties that will be applied to the <path> tag. Default style: transform-box: 'fill-box' and a dynamically calculated transform-origin which is the center of the shape, so that the shape rotates around its center by default.
strokeDasharray
string
Allows to animate a path. See evolvePath() for an example.
strokeDashoffset
string
Allows to animate a path. See evolvePath() for an example.
effects
EffectsProp
Apply effects after the shape has been painted to a canvas. Available from v4.0.474. If this is a non-empty array, the shape is wrapped in <HtmlInCanvas>.
pixelDensity
number
Controls the backing bitmap density when effects are passed. Default: 1. Available from v4.0.474.
Inherited propsv4.0.474
<Arrow> inherits from, durationInFrames, name, showInTimeline and hidden from <Sequence>.
Other props
All other props that can be passed to a <path> are accepted and will be forwarded.