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
16
17
use leptos::prelude::*;
use orbital_base_components::BaseLayoutHeaderInset;
use orbital_macros::component_doc;

/// Scrollable spacer matching overlay app bar height.
///
/// Rendered automatically by [`LayoutMain`](crate::LayoutMain) when a Fixed or Sticky [`AppBar`](crate::AppBar) provides [`AppBarInset`](orbital_base_components::AppBarInset).
#[component_doc(category = "Shell", preview = "manual")]
#[component]
pub fn LayoutHeaderInset(
    #[prop(optional, into)] class: MaybeProp<String>,
    #[prop(default = 56)] height_px: u16,
) -> impl IntoView {
    view! {
        <BaseLayoutHeaderInset class=class height_px=height_px />
    }
}