pub fn classes<MSG>(
    class_list: impl IntoIterator<Item = impl ToString>
) -> Attribute<MSG>
Expand description

a helper function to add multiple classes to a node

Examples

use sauron::{*,html::*, html::attributes::*};

let html: Node<()> =
   div(vec![classes(["dashed", "error"])], vec![]);