2020-12-08 21:59:55 +00:00
|
|
|
@use crate::ui::ButtonKind;
|
|
|
|
|
|
|
|
@(text: &str, kind: ButtonKind)
|
|
|
|
|
|
|
|
@match kind {
|
2023-03-10 03:49:22 +00:00
|
|
|
ButtonKind::Submit => {
|
|
|
|
<div class="button submit">
|
|
|
|
<span>@text</span>
|
|
|
|
<button class="action" type="submit">@text</button>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
ButtonKind::Plain => {
|
|
|
|
<div class="button plain">
|
|
|
|
<span>@text</span>
|
|
|
|
<button class="action">@text</button>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
ButtonKind::Outline => {
|
|
|
|
<div class="button outline">
|
|
|
|
<span>@text</span>
|
|
|
|
<button class="action">@text</button>
|
|
|
|
</div>
|
|
|
|
}
|
2020-12-08 21:59:55 +00:00
|
|
|
}
|