components: buttons, dropdown, href, nav

This commit is contained in:
Diana 2024-10-12 13:01:52 -05:00
parent bfde0cc445
commit 7073cd1c21
9 changed files with 106 additions and 19 deletions

View file

@ -0,0 +1,6 @@
{{define "form_href"}}
<a class="{{if eq .IsButton true}} btn btn-{{.TypeClass}}{{end}} {{if eq .IsDisabled true}}disabled{{end}}"
href="{{.Link}}" {{if eq .IsButton true}}role="button"{{end}} {{if eq .IsDisabled true}}aria-disabled="true"{{end}}>
{{.Text}}
</a>
{{end}}