MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus-components / join_class

Function join_class

primitives/src/lib.rs:406–413  ·  view source on GitHub ↗
(a: &str, b: &str)

Source from the content-addressed store, hash-verified

404 }
405
406 merged
407}
408
409fn join_class(a: &str, b: &str) -> String {
410 let (a, b) = (a.trim(), b.trim());
411 if !a.is_empty() && !b.is_empty() {
412 format!("{a} {b}")
413 } else {
414 format!("{a}{b}")
415 }
416}

Callers 1

merge_attributesFunction · 0.85

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected