# Button
```rust demo
view! {
}
```
### Color
```rust demo
view! {
}
```
### Icon
```rust demo
view! {
}
```
### Loading
```rust demo
let loading = create_rw_signal(false);
let on_click = move |_| {
loading.set(true);
set_timeout(
move || {
loading.set(false);
},
std::time::Duration::new(2, 0),
);
};
view! {
}
```
### Disabled
```rust demo
view! {
}
```
### Size
```rust demo
view! {
}
```
### Group
```rust demo
view! {
}
```
### Button Props
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| class | `MaybeSignal` | `Default::default()` | Additional classes for the button element. |
| style | `MaybeSignal` | `Default::default()` | Button's style. |
| variant | `MaybeSignal` | `ButtonVariant::Primary` | Button's variant. |
| color | `MaybeSignal` | `ButtonColor::Primary` | Button's color. |
| round | `MaybeSignal` | `false` | Whether the button shows rounded corners. |
| circle | `MaybeSignal` | `false` | Whether the button is round. |
| icon | `Option` | `None` | The icon of the button. |
| loading | `MaybeSignal` | `false` | Whether the button shows the loading status. |
| disabled | `MaybeSignal` | `false` | Whether the button is disabled. |
| size | `MaybeSignal` | `ButtonSize::Medium` | Button size. |
| on_click | `Option>` | `None` | Listen for button click events. |
| children | `Children` | | Button's content. |