Dioxus Slides
Dioxus Slides is a slides component library for Dioxus, a reactive UI library for Rust. It provides a way to create slide presentations using Dioxus and Rust.
Features
- Slide navigation: Navigate through slides using the
next
andprev
methods provided by theSlidable
trait. - Slide rendering: Render slides using the
render
method provided by theSlidable
trait. - Slide numbering: Get the current slide number and the total number of slides.
Usage
First, add dioxus-slides
to your Cargo.toml
:
[]
= "0.4.0"
= "0.0.2"
Then, define your slides as an enum and derive the Slidable trait:
use *;
use *;
Each variant of the enum represents a slide. You can then define a function for each slide that returns an Element:
// Define functions for the other slides...
Finally, you can use the SlideContainer component to render your slides:
License
This project is licensed under either of
Apache License, Version 2.0, LICENSE-APACHE MIT license at your option.
Please note that this README assumes that the LICENSE-APACHE
and LICENSE-MIT
files exist in the root directory of the project.