2023-08-16 15:11:03 +01:00
|
|
|
{{- $name := .Get "name" -}}
|
|
|
|
{{- $state := .Get "state" | default "open" }}
|
|
|
|
|
2025-03-29 12:51:42 +00:00
|
|
|
<li class="hx:group hx:flex hx:list-none hx:flex-col">
|
|
|
|
<button class="hextra-filetree-folder hx:inline-flex hx:cursor-pointer hx:items-center hx:py-1 hx:hover:opacity-60">
|
|
|
|
<span data-state="{{ $state }}" class="hx:data-[state=open]:hidden">
|
2023-08-16 15:11:03 +01:00
|
|
|
{{- partial "utils/icon" (dict "name" "folder" "attributes" "width=1em") -}}
|
|
|
|
</span>
|
2025-03-29 12:51:42 +00:00
|
|
|
<span data-state="{{ $state }}" class="hx:data-[state=closed]:hidden">
|
2023-08-16 15:11:03 +01:00
|
|
|
{{- partial "utils/icon" (dict "name" "folder-open" "attributes" "width=1em") -}}
|
|
|
|
</span>
|
2025-03-29 12:51:42 +00:00
|
|
|
<span class="hx:ltr:ml-1 hx:rtl:mr-1">{{ $name }}</span>
|
2023-08-16 15:11:03 +01:00
|
|
|
</button>
|
2025-03-29 12:51:42 +00:00
|
|
|
<ul data-state="{{ $state }}" class="hx:ltr:pl-5 hx:rtl:pr-5 hx:data-[state=closed]:hidden">
|
2025-03-11 21:42:16 +00:00
|
|
|
{{- .InnerDeindent -}}
|
2023-08-16 15:11:03 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|