Project Folder
Project Folder provides a visual file or folder treatment around supplied project information.
Practical React example
Show a compact project preview with a clear way to open the project.
Before you copy and paste
Keep the example in the React rendering environment required by the imported component. Copy components/motion/project-folder.tsx and its returned support files from the Code tab; preserve the project-relative paths.
Listed package dependencies: clsx, lucide-react, motion, react, react-dom, tailwind-merge.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Show a compact project preview with a clear way to open the project
// Usage adapted from beUI's pinned MIT source.
// Copyright (c) 2026 Saurabh Chauhan. See ./LICENSES.md.
"use client";
import { ProjectFolder } from "@/components/motion/project-folder";
const previews = [
{ id: "moss", color: "bg-emerald-200", mark: "A" },
{ id: "clay", color: "bg-orange-200", mark: "B" },
{ id: "sky", color: "bg-sky-200", mark: "C" },
{ id: "lilac", color: "bg-violet-200", mark: "D" },
{ id: "sand", color: "bg-amber-100", mark: "E" },
].map((preview) => ({
id: preview.id,
content: (
<span className={cn("relative block h-full w-full", preview.color)}>
<span className="absolute left-3 top-3 h-2 w-8 rounded-full bg-black/15" />
<span className="absolute inset-x-3 top-8 h-px bg-black/10" />
<span className="absolute inset-x-3 top-11 h-px bg-black/10" />
<span className="absolute bottom-3 right-3 text-sm font-medium text-black/50">
{preview.mark}
</span>
</span>
),
}));
function cn(...classes: string[]) {
return classes.filter(Boolean).join(" ");
}
export function ProjectFolderPreview() {
return (
<div className="flex min-h-80 w-full items-center justify-center px-6 py-10">
<ProjectFolder
title="Brand direction"
description="Updated recently"
count={5}
previews={previews}
onClick={() => {}}
/>
</div>
);
}
Usage example adapted from beUI's pinned MIT source. Retain the source licence notices when copying.
Use the preview to summarize a project, then link to a real destination with a readable name. Keep file permissions and project data in your application.
Customization
- ProjectFolderProps.title
- Required; string.
- ProjectFolderProps.description
- Optional; string.
- ProjectFolderProps.previews
- Optional; ProjectFolderPreview[].
- ProjectFolderProps.count
- Optional; number.
- ProjectFolderProps.itemLabel
- Optional; string.
- ProjectFolderProps.open
- Optional; boolean.
- ProjectFolderProps.defaultOpen
- Optional; boolean.
- ProjectFolderProps.onOpenChange
- Optional; (open: boolean) => void.
- ProjectFolderProps.expanded
- Optional; boolean.
- ProjectFolderProps.defaultExpanded
- Optional; boolean.
- ProjectFolderProps.onExpandedChange
- Optional; (expanded: boolean) => void.
- ProjectFolderProps.onClick
- Optional; () => void.
- ProjectFolderProps.disabled
- Optional; boolean.
- ProjectFolderProps.ariaLabel
- Optional; string.
Integration notes
- A folder animation does not enumerate or authorize filesystem access.
- Provide useful fallback text if thumbnails fail and keep the primary link reachable without hover.
Component source: beUI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.