Skip to content

🎥 Make videos programmatically with React

456 B
Raw Blame
import React from 'react';
import {AbsoluteFill, Sequence, useVideoConfig} from 'remotion';
import type {Theme} from './colors';
import {Comp} from './Composition';

export const Banner: React.FC<{
	readonly theme: Theme;
}> = ({theme}) => {
	const {height} = useVideoConfig();

	return (
		<AbsoluteFill style={{marginTop: -(1080 - height) / 2}}>
			<Sequence width={1080} height={1080}>
				<Comp theme={theme} />
			</Sequence>
		</AbsoluteFill>
	);
};