pub fn class<'a>(classes: impl IntoIterator<Item = &'a str>) -> AttributeExpand description
class attribute
It takes a list of clases and join them together
ยงExample
assert_eq!(
class(["foo", "bar", "baz"]).to_string(),
r#"class="foo bar baz""#,
);