yew_styles 0.11.0

Framework styles for yew
Documentation
1
2
3
4
5
6
7
8
9
use yew::prelude::*;

pub fn get_error_message(error_state: bool, error_message: String) -> Html {
    if error_state {
        html! {<span class="form-error">{error_message}</span>}
    } else {
        html! {}
    }
}