Skip to content

Graphics ​

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.

Built-in kinds of <Graphic>: pure functions from props and the theme to SVG, drawn the same in the preview and the export. Each card plays its example as the export renders it; its page has the code. Generated from packages/graphics by pnpm docs:gen; the previews were rendered by the Node export, which is gone, and <Graphic> is deprecated, so they are not rendered again.

tsx
<Composition fps={30} width={640} height={360}>
  <Track id="main" layout="free">
    <Graphic id="g1" kind="lower-third" start={0} duration={3} />
  </Track>
</Composition>

Every kind also takes the <Graphic> props: timing, transform, enter/exit, style, and width/height for its box. Colours and fonts default to theme tokens.

Arrows ​

Callouts ​

Lower thirds ​

Frames ​

Highlights ​

Progress ​

Data ​

Dividers ​

Backgrounds ​

Effects ​

Icons ​

MIT licensed.