Skip to content

Progress bar ​

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 bar that fills from from to to over the element's duration; give value to hold it still. Animated: it changes over its whole duration.

tsx
<Composition fps={30} width={1280} height={720}>
  <Track id="main" layout="free">
    <Graphic
      id="g1"
      kind="progress-bar"
      value={0.62}
      start={0}
      duration={3}
    />
  </Track>
</Composition>

Props ​

proptypedefault
valuenumber (0..1)
fromnumber (0..1)0
tonumber (0..1)1
fillstring"$primary"
trackstring"$surface"
roundedbooleantrue

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

MIT licensed.