Skip to main content

wiwi_web_components/
lib.rs

1#![allow(
2	clippy::missing_inline_in_public_items,
3	reason = "leptos"
4)]
5
6use leptos::prelude::*;
7use leptos_mview::mview;
8
9#[component]
10pub fn Table<C, CV>(children: C) -> impl IntoView
11where
12	C: FnOnce() -> CV,
13	CV: IntoView + Send
14{
15	mview! {
16		table
17			role = "table"
18		{
19			{ children() }
20		}
21	}
22}
23
24#[component]
25pub fn Caption<C, CV>(children: C) -> impl IntoView
26where
27	C: FnOnce() -> CV,
28	CV: IntoView + Send
29{
30	mview! {
31		caption
32			role = "caption"
33		{
34			{ children() }
35		}
36	}
37}