Crates.io | dioxus-spline |
lib.rs | dioxus-spline |
version | 0.2.3 |
source | src |
created_at | 2024-05-03 01:02:39.377614 |
updated_at | 2024-07-24 10:06:38.464676 |
description | A Spline component for dioxus |
homepage | |
repository | https://github.com/LilDojd/dioxus-spline |
max_upload_size | |
id | 1228273 |
size | 4,489,385 |
dioxus-spline allows you to export and use Spline scenes directly in your Dioxus websites.
🌈 Spline is a friendly 3d collaborative design tool for the web.
Website — Twitter — Community — Documentation
To use dioxus-spline, first you have to go to the Spline editor, click on the Export button, select "Code".
You should see something like this:
You can copy the URL and pass it to the Spline
component in Dioxus:
use dioxus-spline::Spline
Spline {
scene: String::from("https://prod.spline.design/6Wq1Q7YGyM-iab9i/scene.splinecode")
}
You should be able to see the scene you exported in your Dioxus app.
You can also:
SplineApplication.find_object_by_name
or SplineApplication.find_object_by_id
.SplineEvent
To see how, visit examples and gh-page
Some additional helpful info can be found in the documentation:
https://docs.rs/dioxus-spline/latest/dioxus_spline/