nova_forms/components/
icon.rs

1use leptos::*;
2
3// Renders an icon.
4// All available icons can be found at the [material symbols and iconswebsite from google](https://fonts.google.com/icons).
5#[component]
6pub fn Icon(#[prop(into)] label: TextProp, #[prop(into)] icon: String) -> impl IntoView {
7    view! {
8        <span class="material-symbols-rounded" aria-label=label>
9            {icon}
10        </span>
11    }
12}