leptos-components 0.2.9

RustLangES leptos components
Documentation
use leptos::prelude::*;

#[component]
pub fn Project(
    #[prop(into, optional, default = 24)] size: i32,
    #[prop(into, default = "".to_string())] class: String,
) -> impl IntoView {
    view! {
        <svg
            width={size}
            height={size}
            viewBox="0 0 24 24"
            class=class
            xmlns="http://www.w3.org/2000/svg"
        >
            <path
                d="M4.75 7C4.55109 7 4.36032 7.07902 4.21967 7.21967C4.07902 7.36032 4 7.55109 4 7.75C4 7.94891 4.07902 8.13968 4.21967 8.28033C4.36032 8.42098 4.55109 8.5 4.75 8.5H9.25C9.44891 8.5 9.63968 8.42098 9.78033 8.28033C9.92098 8.13968 10 7.94891 10 7.75C10 7.55109 9.92098 7.36032 9.78033 7.21967C9.63968 7.07902 9.44891 7 9.25 7H4.75ZM5 4.75C5 4.55109 5.07902 4.36032 5.21967 4.21967C5.36032 4.07902 5.55109 4 5.75 4H11.25C11.4489 4 11.6397 4.07902 11.7803 4.21967C11.921 4.36032 12 4.55109 12 4.75C12 4.94891 11.921 5.13968 11.7803 5.28033C11.6397 5.42098 11.4489 5.5 11.25 5.5H5.75C5.55109 5.5 5.36032 5.42098 5.21967 5.28033C5.07902 5.13968 5 4.94891 5 4.75ZM6.75 10C6.55109 10 6.36032 10.079 6.21967 10.2197C6.07902 10.3603 6 10.5511 6 10.75C6 10.9489 6.07902 11.1397 6.21967 11.2803C6.36032 11.421 6.55109 11.5 6.75 11.5H11.25C11.4489 11.5 11.6397 11.421 11.7803 11.2803C11.921 11.1397 12 10.9489 12 10.75C12 10.5511 11.921 10.3603 11.7803 10.2197C11.6397 10.079 11.4489 10 11.25 10H6.75Z"
                fill="currentColor"
            />
        </svg>
    }
}