icons 0.2.14

Icons for Rust fullstack applications — Leptos and Dioxus.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use leptos::prelude::*;

use super::SvgIcon;

#[component]
pub fn Diamond(#[prop(into, optional)] class: Signal<String>) -> impl IntoView {
    view! {
        <SvgIcon class=class>
            <title>"Rust UI Icons - Diamond"</title>

            <path d="M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z" />
        </SvgIcon>
    }
}