Repository navigation
UI Data
github-actions[bot] edited this page Oct 14, 2026
·
2 revisions
Components for showing structured data. Part of @nynxz/zenkit-ui.
A collapsible JSON viewer in a monospace font, with values coloured by type.
<JsonTree :data="workflow" name="workflow" :default-open="2" />| Prop | Type | Default | Description |
|---|---|---|---|
data |
unknown |
required | Any JSON-like value |
name |
string |
— | Key label for the root node |
defaultOpen |
number |
1 |
Auto-expand down to this depth |
depth |
number |
0 |
Used internally for recursion; leave it unset |
No events or slots.
An expandable folder tree built from flat paths. Selecting a folder opens it, and the path to the
selection always stays open. Open folders can be remembered in localStorage.
<script setup lang="ts">
import { ref } from 'vue'
import { ZenFolderTree, type FolderTreeEntry } from '@nynxz/zenkit-ui'
const folders: FolderTreeEntry[] = [
{ path: 'characters', count: 12 },
{ path: 'characters/anime', count: 5 },
{ path: 'styles', count: 8 },
]
const dir = ref<string | null>(null)
</script>
<template>
<ZenFolderTree v-model="dir" :folders="folders" storage-key="mypack.loraFolders" />
</template>| Prop | Type | Default | Description |
|---|---|---|---|
modelValue |
string | null |
null |
Selected folder path |
folders |
FolderTreeEntry[] |
required |
{ path: string; count?: number }; /-separated paths |
storageKey |
string |
'' |
localStorage key for open folders; empty = don't remember |
| Event | Payload |
|---|---|
update:modelValue |
string | null |
ZenMediaPicker and LoraBrowser use it for their folder panes.
Getting started
Guides
- Panels and workspaces
- Apps and routing
- Themes
- Backgrounds
- Channels and media
- Jobs
- Capabilities
- Storage and bus
Node packs
UI components
Reference