2 releases
Uses new Rust 2024
new 0.0.2 | May 8, 2025 |
---|---|
0.0.1 | May 6, 2025 |
#328 in Science
75 downloads per month
44KB
648 lines
🎬 Demo
Framework | Live Demo |
---|---|
Yew | |
Dioxus | |
Leptos | TODO |
📜 Intro
Skeleton RS is a lightweight, highly customizable loading placeholder component for WASM-based UI frameworks like Yew, Dioxus, and Leptos. It helps deliver a smooth loading experience with animated placeholders, responsive sizing, and fine-grained visibility control using IntersectionObserver
.
🤔 Why Use Skeleton RS?
The following features make Skeleton RS an essential building block for modern frontend apps built with Rust and WebAssembly:
- ✨ Smooth UX: Mimics content structure while loading, avoiding layout shifts.
- 👁️ Animate on Visibility: Supports visibility-based animations using
IntersectionObserver
. - 🎛️ Fully Customizable: Control height, width, border radius, animation style, and more.
- 📱 Responsive Ready: Automatically adapts to screen sizes when enabled.
- ⏳ Delay-Aware Rendering: Prevents unnecessary skeleton flashes using
delay_ms
.
Yew Usage
Refer to our guide to integrate this component into your Yew app.
🧬 Dioxus Usage
Refer to our guide to integrate this component into your Dioxus app.
🌱 Leptos Usage (TODO)
Refer to our guide to integrate this component into your Leptos app.
🤝 Contributions
Contributions are welcome! Whether it's bug fixes, feature requests, or examples, we would love your help to make Skeleton RS better.
- Fork the repository.
- Create a new branch for your feature/bugfix.
- Submit a pull request for review.
📜 License
Skeleton RS is licensed under the MIT License. You are free to use, modify, and distribute this library in your projects.
Dependencies
~7–20MB
~284K SLoC