Kosorikōsori alpha

File Tree

Renders a hierarchical structure of files and folders.

favicon.ico
index.html
package.json

Installation

npx @kosori/cli add components file-tree

Usage

import {
  File,
  FileTree,
  Folder,
  FolderFiles,
  FolderName,
} from '~/components/ui/file-tree';
<FileTree>
  <Folder>
    <FolderName>app</FolderName>
    <FolderFiles>
      <File>layout.tsx</File>
      <File>page.tsx</File>
    </FolderFiles>
  </Folder>
</FileTree>

Reference

File

PropTypeDefault
icon
ReactNode
<FileIcon />

On this page