mirror of
https://github.com/adoyle0/thaw.git
synced 2025-03-14 06:29:49 -04:00
31 lines
827 B
Rust
31 lines
827 B
Rust
|
use leptos::*;
|
||
|
use melt_ui::*;
|
||
|
|
||
|
#[component]
|
||
|
pub fn DemoButton(cx: Scope) -> impl IntoView {
|
||
|
view! {cx,
|
||
|
<Space>
|
||
|
<Button type_=ButtonType::PRIMARY>
|
||
|
"PRIMARY"
|
||
|
</Button>
|
||
|
<Button type_=ButtonType::SOLID>
|
||
|
"SOLID"
|
||
|
</Button>
|
||
|
<Button type_=ButtonType::TEXT>
|
||
|
"TEXT"
|
||
|
</Button>
|
||
|
<Button color=ButtonColor::PRIMARY>
|
||
|
"PRIMARY Color"
|
||
|
</Button>
|
||
|
<Button color=ButtonColor::SUCCESS>
|
||
|
"SUCCESS Color"
|
||
|
</Button>
|
||
|
<Button color=ButtonColor::WARNING>
|
||
|
"WARNING Color"
|
||
|
</Button>
|
||
|
<Button color=ButtonColor::ERROR>
|
||
|
"ERROR Color"
|
||
|
</Button>
|
||
|
</Space>
|
||
|
}
|
||
|
}
|