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
14
15
use leptos::prelude::*;
use orbital_base_components::BaseLayoutSidebar;

/// Side navigation column for [`Layout`](crate::Layout).
#[component]
pub fn LayoutSidebarShell(
    #[prop(optional, into)] class: MaybeProp<String>,
    children: Children,
) -> impl IntoView {
    view! {
        <BaseLayoutSidebar class=class>
            {children()}
        </BaseLayoutSidebar>
    }
}