Daisy-RSX
This is a Dioxus version of the Daisy UI components.
Installation
Install daisy_rsx using cargo add:
This command will add the crate to your Cargo.toml:
[]
= "0.1"
For the CSS part you can compile Tailwind and DaisyUI with tailwind-cli-extra which does not require npm.
A typical tailwind.css might look like:
@@//**/@/**/@);
The @source inline directives ensure all Daisy UI classes used by Daisy RSX components are included in the final CSS.
Run tailwindcss (or tailwind-cli-extra) to produce your stylesheet and you are ready to use the components in your Dioxus application.
Examples
Below are two simple examples showing how to use the components.
use *;
use ;
With a button inside the card:
use *;
use ;
To Create a Release
To create a new release, use the following command locally:
Once you are ready, pass the --execute flag.
This will:
- Bump the version number.
- Create a git tag.
- Push changes to the remote repository.
- Trigger the GitHub Actions workflow to publish the crate.