Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![cfg(feature = "container")]
use darth_rust::DarthRust;
use leptos::*;

#[derive(DarthRust, Default)]
pub struct ContainerBuild {
    class: &'static str,
}

#[component]
pub fn Container(props: ContainerBuild, children: Children) -> impl IntoView {
    view! {
        <div class=props.class>
            {children()}
        </div>
    }
}