Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Project Folder

Preview

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/project-folder

Import the shared styles once in your application.

TSUsage
import ProjectFolder from '@/components/beui/blocks/ProjectFolder.vue'
import '@/components/beui/styles.css'

API Reference

title
string
Default—
description?
string
Default—
previews?
readonly FolderPreview[]
Default[]
count?
number
Default—
itemLabel?
string

Singular noun for the count, e.g. `"file"`. Pluralized the English way by appending `s` (`3 files`), so only pass it for English copy. Leave it unset to use the localizable `countOne`/`countOther` messages.

Default—
v-model:open?
boolean
Defaultundefined
defaultOpen?
boolean
Defaultfalse
v-model:expanded?
boolean
Defaultundefined
defaultExpanded?
boolean
Defaultfalse
@click?
() => void
Default—
disabled?
boolean
Defaultfalse
ariaLabel?
string
Default—
labels?
Partial<typeof projectFolderMessages>

Override any built-in string. `{count}` fills `countOne`/`countOther`; `{title}` fills `close`.

Default—
className?
string
Default—
@open-change?
(value: boolean) => void
Default—
@expanded-change?
(value: boolean) => void
Default—
#preview?
{ preview: FolderPreview }

Renders one file; used both inside the folder and in the expanded overlay.

Default—

Updated