leptonic 0.5.0

The Leptos component library.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use leptos::*;

#[component]
pub fn Box(
    #[prop(into, optional)] id: Option<AttributeValue>,
    #[prop(into, optional)] class: Option<AttributeValue>,
    #[prop(into, optional)] style: Option<AttributeValue>,
    children: Children,
) -> impl IntoView {
    view! {
        <leptonic-box id=id class=class style=style>
            { children() }
        </leptonic-box>
    }
}