dioxuscut_core/lib.rs
1//! # dioxuscut-core
2//!
3//! Core Dioxus components and hooks for Dioxuscut.
4//!
5//! Provides a Rust/Dioxus equivalent of `remotion/core`:
6//!
7//! ## Components
8//! - [`Composition`] — top-level video definition
9//! - [`Sequence`] — time-sliced sub-composition
10//! - [`AbsoluteFill`] — full-size absolute overlay
11//! - [`Freeze`] — pause a subtree at a specific frame
12//!
13//! ## Hooks
14//! - [`use_current_frame`] — returns the current render frame
15//! - [`use_video_config`] — returns [`VideoConfig`] for the composition
16//!
17//! ## Re-exports
18//! - Animation primitives from [`dioxuscut_animation`]
19
20pub mod absolute_fill;
21pub mod composition;
22pub mod freeze;
23pub mod hooks;
24pub mod sequence;
25pub mod timeline;
26pub mod types;
27
28// ── Public re-exports ─────────────────────────────────────────────────────────
29pub use absolute_fill::AbsoluteFill;
30pub use composition::{Composition, CompositionProps};
31pub use freeze::Freeze;
32pub use hooks::{use_current_frame, use_video_config};
33pub use sequence::{Sequence, SequenceProps};
34pub use timeline::context::{TimelineContext, VideoConfigContext};
35pub use types::VideoConfig;
36
37// Re-export animation crate for convenience
38pub use dioxuscut_animation as animation;