nova_forms/components/
icon.rs

1
2
3
4
5
6
7
8
9
10
use leptos::*;

#[component]
pub fn Icon(#[prop(into)] label: TextProp, #[prop(into)] icon: String) -> impl IntoView {
    view! {
        <span class="material-symbols-rounded" aria-label=label>
            {icon}
        </span>
    }
}