mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
feat(tabs): support icon
This commit is contained in:
@@ -13,7 +13,12 @@
|
||||
role="tab"
|
||||
aria-selected="{{ cond (eq $nTabs 0) "true" "false" }}"
|
||||
data-tab-index="{{ $nTabs }}">
|
||||
{{ index . "label" }}
|
||||
<span class="flex items-center gap-1">
|
||||
{{ with index . "icon" }}
|
||||
{{ partial "icon.html" . }}
|
||||
{{ end }}
|
||||
{{ index . "label" }}
|
||||
</span>
|
||||
</button>
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user