Skip to content

🎥 Make videos programmatically with React

layout = none

Jonny Burger6b21e3e2f53a
diff --git a/packages/core/src/Sequence.tsx b/packages/core/src/Sequence.tsx
index f5a69fbc17..3d5acb7ece 100644
--- a/packages/core/src/Sequence.tsx
+++ b/packages/core/src/Sequence.tsx
@@ -66,6 +66,11 @@ export const Sequence: React.FC<SequenceProps> = ({
);
}
+ // @ts-expect-error
+ if (layout === 'none' && typeof other.style !== 'undefined') {
+ throw new TypeError('If layout="none", you may not pass a style.');
+ }
+
if (typeof durationInFrames !== 'number') {
throw new TypeError(
`You passed to durationInFrames an argument of type ${typeof durationInFrames}, but it must be a number.`