dioxus_tw_components/bootstrap/
mod.rs

1use dioxus::prelude::*;
2
3#[derive(Default, Clone, PartialEq, Props)]
4pub struct BootstrapConfig {
5    #[props(optional, default)]
6    pub icon: Option<Asset>,
7}
8
9#[component]
10pub fn DioxusTwComponentsBootstrap(props: BootstrapConfig) -> Element {
11    rsx! {
12        document::Stylesheet { href: "https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:FILL@1" }
13        if let Some(icon) = props.icon {
14            document::Link { rel: "icon", href: icon }
15        }
16    }
17}