Toolkit: Add basic icon link button
This commit is contained in:
parent
cc9909265d
commit
2f9decc07f
10
toolkit/templates/icon_button.rs.html
Normal file
10
toolkit/templates/icon_button.rs.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
@use crate::{templates::link, Link};
|
||||
|
||||
@(icon: &str, title: &str, href: &str)
|
||||
|
||||
<div class="toolkit-button toolkit-button__link">
|
||||
<span><i class="fa fa-@icon"></i></span>
|
||||
@:link(&Link::current_tab(href).plain(true).class("toolkit-button--action").title(title), {
|
||||
<i class="fa fa-@icon"></i>
|
||||
})
|
||||
</div>
|
Loading…
Reference in a new issue