mirror of
https://github.com/imfing/hextra.git
synced 2025-08-26 00:36:44 -04:00
feat(card): add tagIcon and tagBorder options (#791)
This commit is contained in:

committed by
GitHub

parent
c149af0f74
commit
22f81e2470
@@ -8,6 +8,8 @@
|
||||
{{- $imageStyle := .imageStyle -}}
|
||||
{{- $tag := .tag -}}
|
||||
{{- $tagColor := .tagColor | default .tagType | default "" -}}{{- /* Compatibility with previous parameter. */ -}}
|
||||
{{- $tagBorder := not (eq .tagBorder false) | default true }}
|
||||
{{- $tagIcon := .tagIcon -}}
|
||||
|
||||
{{ $linkClass := "hx:hover:border-gray-300 hx:bg-transparent hx:shadow-xs hx:dark:border-neutral-800 hx:hover:bg-slate-50 hx:hover:shadow-md hx:dark:hover:border-neutral-700 hx:dark:hover:bg-neutral-900" }}
|
||||
{{- with $image -}}
|
||||
@@ -57,7 +59,8 @@
|
||||
"content" $tag
|
||||
"color" $tagColor
|
||||
"class" "hextra-card-tag"
|
||||
"border" true
|
||||
"border" $tagBorder
|
||||
"icon" $tagIcon
|
||||
)
|
||||
-}}
|
||||
{{- end -}}
|
||||
|
Reference in New Issue
Block a user