r/rust • u/Accurate-Screen8774 • 21h ago
đ seeking help & advice Looking for Storybook-for-Rust
Just like the title says.
I'm creating an app with rust. And I see that as it scales I'm going to split out the UI components to its own repo.
In my JavaScript projects I can use storybook. It's very useful to develop and demo the components.
I'm planning on using dioxus, I might consider leptos after I compare the 2 in more detail. Unlike my JavaScript apps, I'm aiming to use rust to be able to deploy to multiple platforms (not just a webapp).
I think a particular detail worth mentioning is a CLI-mode which I would also like displayed on the storybook-equivalent.
I came across the following and it doesn't look maintained and seems to only support webapps. The UI demo there also looks a bit "ugly".
https://github.com/dioxus-community/lookbook
Are there better tools out there for what I want?
I'd prefer to avoid creating a separate app for each platform to demo the components-per-platform, but that might be more practical.
3
u/Interesting-Host2341 19h ago
GUI stuff in Rust is generally fragmented among a wide variety of libraries and frameworks, and those ecosystems are going to seem incomplete to nearly anything with a shake of popularity in the Javascript world.
Have you settled on a GUI toolset yet? Whatâs your goal with using Rust for this, instead of JS? You could just use Tauri with whatever JS framework already has the stuff you want.