This directory contains example Orbit applications demonstrating various features and patterns of the OrbitRS SDK.
props_minimal.rs- Minimal example showing props system usageprops_example.rs- Advanced props system demonstration with validationprops_and_events.rs- Example demonstrating props and event handlingcomponent_lifecycle.rs- Example of component lifecycle management with reactive state
advanced_skia.rs- Advanced example using Skia for custom renderingwgpu_renderer.rs- Example demonstrating WGPU renderer with 3D contentskia_test.rs- Test program for the orbit window system with Skia renderingwindow_test.rs- Basic window system test
counter.orbit- Basic counter with increment, decrement, and reset functionalityuser-profile.orbit- Profile editor with form validation and theme support
The examples project is organized as follows:
src/- Contains Rust example filesCargo.toml- Example project configurationlib.rs- Placeholder library file for project organization
You can run any example using cargo:
# For Rust examples
cargo run --example props_minimal
cargo run --example advanced_skia
cargo run --example wgpu_renderer
# For .orbit files (requires orbiton CLI tool)
orbiton run counter.orbit