dioxus_components 0.1.2

A comprehensive collection of reusable Dioxus 0.7 components built with Tailwind CSS v4
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub fn cn(parts: impl IntoIterator<Item = Option<impl AsRef<str>>>) -> String {
    parts
        .into_iter()
        .filter_map(|p| {
            p.and_then(|s| {
                let trimmed = s.as_ref().trim();
                if trimmed.is_empty() {
                    None
                } else {
                    Some(trimmed.to_string())
                }
            })
        })
        .collect::<Vec<_>>()
        .join(" ")
}