Skip to content

Speech bubble ​

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.

A round comic-style bubble with a tail to one side below it.

tsx
<Composition fps={30} width={640} height={360}>
  <Track id="main" layout="free">
    <Graphic
      id="g1"
      kind="speech-bubble"
      text="Hi there!"
      start={0}
      duration={3}
    />
  </Track>
</Composition>

Props ​

proptypedefault
textstring"Hi there!"
colorstring"#111111"
fontstring"$body"
sizenumber (0..400)36
weightinteger700
fillstring"#ffffff"
borderstring"#111111"
borderWidthnumber (0..50)4
tail"left" | "right""left"

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

MIT licensed.