leptonic 0.5.0

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

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