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
18
use leptos::prelude::*;
use orbital_base_components::BaseDialogBody;

/// Layout wrapper grouping title, content, and actions inside [`DialogSurface`](super::surface::DialogSurface).
#[component]
pub fn DialogBody(
    /// Optional CSS class on the body wrapper.
    #[prop(optional, into)]
    class: MaybeProp<String>,
    /// Typically [`DialogTitle`](super::title::DialogTitle), [`DialogContent`](super::content::DialogContent), and [`DialogActions`](super::actions::DialogActions).
    children: Children,
) -> impl IntoView {
    view! {
        <BaseDialogBody class=class>
            {children()}
        </BaseDialogBody>
    }
}