mirror of
https://github.com/adoyle0/thaw.git
synced 2025-01-23 22:39:23 -05:00
3684f5961b
* demo: refactor docs * demo: refactor docs * demo: refactor guide docs * chore: workflow add listens to the demo_markdown * demo: refactor mobile docs
26 lines
1 KiB
Markdown
26 lines
1 KiB
Markdown
# Alert
|
|
|
|
```rust demo
|
|
view! {
|
|
<Space vertical=true>
|
|
<Alert variant=AlertVariant::Success title="title">
|
|
"success"
|
|
</Alert>
|
|
<Alert variant=AlertVariant::Warning title="title">
|
|
"warning"
|
|
</Alert>
|
|
<Alert variant=AlertVariant::Error title="title">
|
|
"error"
|
|
</Alert>
|
|
</Space>
|
|
}
|
|
```
|
|
|
|
### Alert Props
|
|
|
|
| Name | Type | Default | Description |
|
|
| -------- | --------------------------- | -------------------- | ----------------------------------------- |
|
|
| class | `MaybeSignal<String>` | `Default::default()` | Additional classes for the alert element. |
|
|
| title | `MaybeSignal<String>` | `Default::default()` | Title of the alert. |
|
|
| variant | `MaybeSignal<AlertVariant>` | | Alert variant. |
|
|
| children | `Children` | | The content of the alert. |
|