Skip to content

ProgressBar ​

A bar that fills from the left to its value.

tsx
import { Clip, Composition, ProgressBar, Track } from "@cutcraft/kit";

// ProgressBar: a bar that fills from the left to its value.
export default function Video() {
  return (
    <Composition fps={30} width={1920} height={1080}>
      <Track id="main">
        <Clip id="shot" src="asset:coffeeWide" in={4} out={7} fit="cover" />
      </Track>
      <Track id="over" layout="free">
        <ProgressBar id="brew" start={0.3} duration={2.7} value={0.7} fillFor={1.8} />
      </Track>
    </Composition>
  );
}

The coffee footage is Pixabay videos 209419 and 209424, under the Pixabay Content License.

Props ​

Besides the timing props (start, anchor, at, offset, duration):

paramtypedefault
idstring
valuenumber (0..1)1
xnumber0
ynumber440
widthnumber1200
heightnumber14
colorstring"$primary"
fillFornumber1.2

All components

MIT licensed.