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::BaseDialogActions;

/// Footer row for primary and secondary actions (typically [`crate::Button`]).
#[component]
pub fn DialogActions(
    /// Optional CSS class on the actions footer.
    #[prop(optional, into)]
    class: MaybeProp<String>,
    /// Action buttons; use `on_click` to set `open` to `false` when dismissing.
    children: Children,
) -> impl IntoView {
    view! {
        <BaseDialogActions class=class>
            {children()}
        </BaseDialogActions>
    }
}