diff --git a/mwaka-aria/src/accordion/mod.rs b/mwaka-aria/src/accordion/mod.rs new file mode 100644 index 0000000..e1e192f --- /dev/null +++ b/mwaka-aria/src/accordion/mod.rs @@ -0,0 +1,3 @@ +mod root; + +pub use root::*; diff --git a/mwaka-aria/src/accordion/root.rs b/mwaka-aria/src/accordion/root.rs new file mode 100644 index 0000000..2514e4e --- /dev/null +++ b/mwaka-aria/src/accordion/root.rs @@ -0,0 +1,8 @@ +use leptos::*; + +#[component] +pub fn AccordionRoot(children: Children) -> impl IntoView { + view! { + <>{children()} + } +} diff --git a/mwaka-aria/src/lib.rs b/mwaka-aria/src/lib.rs index 7066bcf..46a19a9 100644 --- a/mwaka-aria/src/lib.rs +++ b/mwaka-aria/src/lib.rs @@ -1,3 +1,5 @@ mod button; +mod accordion; pub use button::*; +pub use accordion::*;