Expand description
<Composition> component — defines a named video composition.
Equivalent to Remotion’s <Composition> component. Provides a
TimelineContext and VideoConfigContext to all descendants.
§Example
ⓘ
use dioxuscut_core::{Composition, CompositionProps};
fn App() -> Element {
rsx! {
Composition {
id: "MyVideo",
width: 1920,
height: 1080,
fps: 30.0,
duration_in_frames: 150,
MyVideoComponent {}
}
}
}Structs§
- Composition
Props - Props for the
<Composition>component.
Functions§
- Composition
- A named video composition.