Skip to content

Callout ​

Deprecated

<Graphic> and its kinds are deprecated and will be removed in a later release; the lint warns on each one. Draw the same thing with <Motion>, <Three> or a <Layer>: the examples show each, and Free code explains them.

Text in a rounded box with a pointer on one side; tailAt slides the pointer along that side (0 to 1).

tsx
<Composition fps={30} width={640} height={360}>
  <Track id="main" layout="free">
    <Graphic
      id="g1"
      kind="callout"
      text="New in 2.0"
      tail="bottom"
      start={0}
      duration={3}
    />
  </Track>
</Composition>

Props ​

proptypedefault
textstring"Look here"
colorstring"$text"
fontstring"$body"
sizenumber (0..400)36
weightinteger700
fillstring"$surface"
borderstring"none"
borderWidthnumber (0..50)0
radiusnumber (0..∞) | string"$radius"
tail"bottom" | "top" | "left" | "right" | "none""bottom"
tailAtnumber (0..1)0.5

Plus the <Graphic> props every kind takes. More in Callouts.

MIT licensed.