---
title: Project Folder
description: Your projects in a frosted glass folder that fans them out and opens each one big.
category: Gallery
tier: pro
url: https://ui.dimaac.com/components/project-folder
registry: https://api.dimaac.com/v1/ui/r/project-folder.json
registry_auth: Authorization: Bearer <DiMaac licence key>
---

# Project Folder

A folder of your projects with a frosted glass front, built in 3D: a back board with an index tab, pleated sides that open as the glass tips forward, and the cards standing inside. Click it and the cards fan out above it; click one and it flies out big with a line about it and a link that opens in a new tab. A switch lays them out as a grid and files them back. Clips play on hover. One plastic colour you choose, springs from Motion, keyboard and touch friendly, and calm with reduced motion.

## Install

This is a Pro component: its source is for buyers of Pro Components, a Templates plan or All-Access, and is not on this page. It installs from the authenticated registry, with the licence key in an environment variable.

1. Merge the registry into components.json (the key is never written into the file):

```json
{
  "registries": {
    "@dimaac-pro": {
      "url": "https://api.dimaac.com/v1/ui/r/{name}.json",
      "headers": { "Authorization": "Bearer ${DIMAAC_LICENSE_KEY}" }
    }
  }
}
```

2. Put the licence key in `.env.local` (keep it out of git; never print or commit it). Ask the owner for it if it isn't set:

```bash
DIMAAC_LICENSE_KEY=your-licence-key
```

3. Add the component:

```bash
npx shadcn@latest add @dimaac-pro/project-folder
```

The registry item is https://api.dimaac.com/v1/ui/r/project-folder.json and answers only with `Authorization: Bearer <licence key>` (or `X-License-Key`). It answers 401 without a key, 403 for a key that isn't valid, and 402 for a key whose purchase doesn't include Pro components (see https://ui.dimaac.com/pricing).

Dependencies:

```bash
pnpm add motion
npm install motion
```

By hand:

Unlock the code on https://ui.dimaac.com/components/project-folder with your licence key, then:

1. Install the packages it uses: motion.
2. Copy the component file from the Code panel (once your licence key unlocks it) into components/dimaac/project-folder.tsx.
3. It's styled with Tailwind v4 classes. If that folder sits outside the places Tailwind scans, add it with @source in your CSS.
4. Import it with import { ProjectFolder } from "@/components/dimaac/project-folder" and give its parent a size: it fills it.

## Usage

```tsx
import { ProjectFolder } from "@/components/dimaac/project-folder";

<ProjectFolder projects={projects} />
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `projects` (required) | `ProjectFolderItem[]` | - | The projects. The first one stands at the back of the folder and the last one in front. |
| `title` | `ReactNode` | `"Projects"` | The heading over the folder: text, or your own styled element. Leave it empty to keep just the switch. |
| `label` | `string` | - | What is printed on the glass. Defaults to the heading when that is text. |
| `defaultView` | `"folder" \| "grid"` | `"folder"` | Which view it starts in. |
| `toggle` | `boolean` | `true` | Show the switch between the folder and the grid. |
| `color` | `string` | `"#a9bfe8"` | The colour of the folder's plastic. Its light and shade are worked out from it. |
| `linkLabel` | `string` | `"Open project"` | The text of the link under a project shown big. |
| `className` | `string` | `""` | Extra classes on the outer box. |

## Source

The source of a Pro component is for buyers of Pro Components, a Templates plan or All-Access. Install it with the commands above, or unlock it on https://ui.dimaac.com/components/project-folder.

## Agent prompt

```text
Add the Project Folder component (<ProjectFolder />) from DiMaac UI to this project. It is a Pro component, so its source needs the owner's DiMaac licence key (Pro Components, a Templates plan or All-Access).

Docs: https://ui.dimaac.com/components/project-folder

1. Add the Pro registry to components.json (merge it into "registries"). Don't write the key into the file:
{
  "registries": {
    "@dimaac-pro": {
      "url": "https://api.dimaac.com/v1/ui/r/{name}.json",
      "headers": { "Authorization": "Bearer ${DIMAAC_LICENSE_KEY}" }
    }
  }
}

2. The owner puts their licence key in .env.local (keep it out of git): DIMAAC_LICENSE_KEY=your-licence-key
   Ask them for it if it isn't set. Never print it or commit it.

3. Install it with:
npx shadcn@latest add @dimaac-pro/project-folder

The registry item is https://api.dimaac.com/v1/ui/r/project-folder.json and wants the header "Authorization: Bearer <licence key>".

Then use it like this:
import { ProjectFolder } from "@/components/dimaac/project-folder";
<ProjectFolder projects={projects} />

It imports motion; the CLI installs them. It uses Tailwind v4 classes, so make sure Tailwind scans that folder.
Give its parent a size, keep light and dark mode working and keep its prefers-reduced-motion fallback.
Full index for agents: https://ui.dimaac.com/llms.txt
```
