vitrine/layouts/partials/components/button.html

13 lines
302 B
HTML
Raw Normal View History

2024-06-19 18:45:01 +00:00
<!--
type: string - default filled
text: string
icon: string (optional)
url: string
-->
{{ $outlined := "outlined"}}
<a class="{{if eq .type $outlined}} button-outlined {{else}} button-filled {{end}}" href="{{ .url }}">
{{ with .icon }}
<i class="icon-{{ . }}"></i>
{{ end }}
{{ .text }}
</a>