24 lines
590 B
HTML
24 lines
590 B
HTML
@use crate::ui::ButtonKind;
|
|
|
|
@(text: &str, kind: ButtonKind)
|
|
|
|
@match kind {
|
|
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>
|
|
}
|
|
}
|