leptos_struct_table/components/
mod.rs1mod cell;
2mod renderer_fn;
3mod row;
4mod table_content;
5mod tbody;
6mod thead;
7mod thead_drag;
8
9pub use cell::*;
10pub use row::*;
11pub use table_content::*;
12pub use tbody::*;
13pub use thead::*;
14pub use thead_drag::*;
15
16#[macro_export]
17macro_rules! wrapper_render_fn {
18 (
19 #[$doc_name:meta]
20 $name:ident,
21 $tag:ident,
22 $(#[$additional_doc:meta])*
23 ) => {
24 #[$doc_name]
26 $(#[$additional_doc])*
33 #[allow(non_snake_case)]
34 pub fn $name(content: AnyView, class: Signal<String>) -> impl IntoView {
35 view! {
36 <$tag class=class>
37 {content}
38 </$tag>
39 }
40 }
41 };
42}