daisy_rsx 0.1.56

Daisy UI components for the Dioxus Rust library.
Documentation
use dioxus::prelude::*;

#[component]
pub fn ImageFeature(title: String, sub_title: String, image: String) -> Element {
    rsx! {
        section {
            class: "",
            h1 {
                class: "text-5xl font-bold text-center",
                "{title}"
            }
            h2 {
                class: "text-center mt-8",
                "{sub_title}"
            }
            img {
                src: "{image}",
                alt: "Product screenshot",
                class: "mt-8"
            }
        }
    }
}