file-tree-basic-demo
jolyui-ui/file-tree-basic-demoFreeExample
jolyui/ui publishes no description for this item.
Install it
npx shadcn@latest add https://jolyui.dev/r/file-tree-basic-demo.jsonSource
1import { FileTree } from "@/registry/default/ui/file-tree";23const basicTreeData = [4 {5 id: "src",6 name: "src",7 type: "folder" as const,8 children: [9 {10 id: "components",11 name: "components",12 type: "folder" as const,13 children: [14 { id: "button", name: "Button.tsx", type: "file" as const },15 { id: "input", name: "Input.tsx", type: "file" as const },16 ],17 },18 { id: "utils", name: "utils.ts", type: "file" as const },19 ],20 },21 { id: "package", name: "package.json", type: "file" as const },22 { id: "readme", name: "README.md", type: "file" as const },23];2425export default function FileTreeBasicDemo() {26 return (27 <div className="flex flex-col gap-3">28 <h3 className="font-medium text-sm">Basic File Tree</h3>29 <FileTree data={basicTreeData} />30 </div>31 );32}
What it pulls in
Other registry items
Files it writes
More from jolyui/ui
All 199 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| ai-prompt-box-demoai-prompt-box-demo | jolyui/ui | Examples | Free | no deps | |
| ai-prompt-box-loading-demoai-prompt-box-loading-demo | jolyui/ui | Examples | Free | no deps | |
| animated-beam-bidirectional-demoanimated-beam-bidirectional-demo | jolyui/ui | Examples | Free | 1 dep | |
| animated-beam-curved-demoanimated-beam-curved-demo | jolyui/ui | Examples | Free | 1 dep | |
| animated-beam-demoanimated-beam-demo | jolyui/ui | Examples | Free | 1 dep | |
| animated-beam-multiple-demoanimated-beam-multiple-demo | jolyui/ui | Examples | Free | 1 dep | |
| animated-table-basic-demoanimated-table-basic-demo | jolyui/ui | Examples | Free | no deps | |
| animated-table-column-demoanimated-table-column-demo | jolyui/ui | Examples | Free | no deps |
