orbital-core-components 0.1.1

Themed Orbital UI components for Leptos applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use leptos::prelude::*;

use crate::overlay::FloatingPanel;

/// Popover panel body rendered inside the anchored overlay portal.
#[component]
pub fn PopoverPanel(#[prop(into)] class: Signal<String>, children: Children) -> impl IntoView {
    view! {
        <FloatingPanel class=class body_class="orbital-popover-body">
            {children()}
        </FloatingPanel>
    }
}