mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 14:29:22 -05:00
1e4832a6d0
* demo: refactor docs * demo: refactor docs * demo: refactor docs * demo: refactor docs
1.4 KiB
1.4 KiB
Tabs
let value = create_rw_signal(String::from("apple"));
view! {
<Tabs value>
<Tab key="apple" label="Apple">
"apple"
</Tab>
<Tab key="pear" label="Pear">
"pear"
</Tab>
</Tabs>
}
Tabs Props
Name | Type | Default | Description |
---|---|---|---|
class | MaybeSignal<String> |
Default::default() |
Addtional classes for the tabs element. |
value | RwSignal<String> |
TagVariant::Default |
Tabs value. |
children | Children |
Tabs content. |
Tab Props
Name | Type | Default | Description |
---|---|---|---|
class | MaybeSignal<String> |
Default::default() |
Addtional classes for the tab element. |
key | String |
The indentifier of the tab. | |
label | String |
The label of the tab. | |
children | Children |
Tabs content. |