Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
import { type ComponentConfig, FPS, H, W } from "@/lib/customizer-config";
export const progressConfig: ComponentConfig = {
componentName: "Progress",
importPath: "@/components/remocn/progress",
controls: {
value: {
type: "number",
min: 0,
max: 100,
step: 1,
default: 62,
description: "Value",
hiddenFromList: false,
},
width: {
type: "number",
min: 120,
max: 640,
step: 20,
default: 320,
description: "Width",
hiddenFromList: false,
},
showLabel: {
type: "boolean",
default: true,
description: "Show Label",
},
},
durationInFrames: 120,
fps: FPS,
compositionWidth: W,
compositionHeight: H,
previewBackdrop: { type: "color", value: "oklch(1 0 0)" },
snippet: (values) => {
const value = values.value as number | undefined;
const width = values.width as number | undefined;
const showLabel = values.showLabel as boolean | undefined;
const props: string[] = [` value={${value ?? 0}}`];
if (width !== undefined && width !== 320) props.push(` width={${width}}`);
if (showLabel) props.push(` showLabel`);
return `import { Progress } from "@/components/remocn/progress";
<Progress
${props.join("\n")}
/>`;
},
};