Skip to content

🎥 Make videos programmatically with React

Make from prop optional, default it to 0, update sequence.md docs

Dhroov Makwanabe636367ce9d
diff --git a/packages/core/src/Sequence.tsx b/packages/core/src/Sequence.tsx
index ce20bdd134..4dd435a684 100644
--- a/packages/core/src/Sequence.tsx
+++ b/packages/core/src/Sequence.tsx
@@ -35,7 +35,7 @@ type LayoutAndStyle =
export type SequenceProps = {
children: React.ReactNode;
- from: number;
+ from?: number;
durationInFrames?: number;
name?: string;
showInTimeline?: boolean;
@@ -47,7 +47,7 @@ const SequenceRefForwardingFunction: React.ForwardRefRenderFunction<
SequenceProps
> = (
{
- from,
+ from = 0,
durationInFrames = Infinity,
children,
name,
diff --git a/packages/docs/docs/sequence.md b/packages/docs/docs/sequence.md
index a2cfd9718d..ccbf8f98b6 100644
--- a/packages/docs/docs/sequence.md
+++ b/packages/docs/docs/sequence.md
@@ -50,9 +50,10 @@ The Sequence component is a high order component and accepts, besides children,
### `from`
-_required_
+_optional_ (From v3.2.36, _required_ in previous versions)
At which frame it's children should assume the video starts. When the sequence is at `frame`, it's children are at frame `0`.
+From v3.2.36 onwards, this prop will be optional; by default, it will be 0.
### `durationInFrames`