-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathmod.rs
32 lines (30 loc) · 844 Bytes
/
mod.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use super::TabbarMdPage;
use crate::pages::MobilePage;
use leptos::*;
use thaw::mobile::{Tabbar, TabbarItem};
#[component]
pub fn TabbarPage() -> impl IntoView {
view! {
<div style="display: flex">
<TabbarMdPage />
<div>
<MobilePage path="/?path=/mobile/tabbar"/>
</div>
</div>
}
}
#[component]
pub fn TabbarDemoPage() -> impl IntoView {
let value = create_rw_signal(String::from("o"));
view! {
<div style="height: 100vh;">
{move || value.get()} <Tabbar value>
<TabbarItem key="a">"and"</TabbarItem>
<TabbarItem key="i">"if"</TabbarItem>
<TabbarItem key="o" icon=icondata::AiCloseOutlined>
"or"
</TabbarItem>
</Tabbar>
</div>
}
}