dioxus-icons 0.1.0

Lucide icons for Dioxus, one component per icon.
Documentation
// @generated by dioxus-icons-codegen from Lucide v1.14.0 (56e49f12166312f04af4cfd862621c93cf583979). Do not edit.
// Lucide icons are licensed under ISC. See LICENSE-LUCIDE.

use dioxus::core::{Element, Template, TemplateNode};

use crate::IconProps;
use crate::vdom::{attr, icon_element, icon_template, path, rect, svg};

#[cfg_attr(any(doc, rust_analyzer), doc = include_str!("docs/cpu.md"))]
#[cfg_attr(any(doc, rust_analyzer), doc = include_str!("../../../rustdoc-header.html"))]
#[allow(non_snake_case)]
pub fn Cpu(props: IconProps) -> Element {
    static TEMPLATE_ROOTS: &[TemplateNode] = &[svg(&[
        path(&[attr("d", "M12 20v2")]),
        path(&[attr("d", "M12 2v2")]),
        path(&[attr("d", "M17 20v2")]),
        path(&[attr("d", "M17 2v2")]),
        path(&[attr("d", "M2 12h2")]),
        path(&[attr("d", "M2 17h2")]),
        path(&[attr("d", "M2 7h2")]),
        path(&[attr("d", "M20 12h2")]),
        path(&[attr("d", "M20 17h2")]),
        path(&[attr("d", "M20 7h2")]),
        path(&[attr("d", "M7 20v2")]),
        path(&[attr("d", "M7 2v2")]),
        rect(&[
            attr("height", "16"),
            attr("rx", "2"),
            attr("width", "16"),
            attr("x", "4"),
            attr("y", "4"),
        ]),
        rect(&[
            attr("height", "8"),
            attr("rx", "1"),
            attr("width", "8"),
            attr("x", "8"),
            attr("y", "8"),
        ]),
    ])];
    static TEMPLATE: Template = icon_template(TEMPLATE_ROOTS);

    icon_element(TEMPLATE, "0 0 24 24", props)
}