---
title: "Folder Component | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/folder-component"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/folder-component.tsx"
install_command: "npx motion-ui-skill add folder-component"
dependencies: ["clsx","motion","react","tailwind-merge"]
category: "craft"
subcategory: "craft"
---

# Folder Component

> An animated folder whose cards fan out on hover and lift open on click, with a 3D-tilted flap. Supports color and size (sm/md/lg) props.

## Install

```bash
npx motion-ui-skill add folder-component
```

## Dependencies

- `clsx`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import FolderComponent from "@/components/craft/folder-component";

export function Example() {
  return (
    <div className="p-6">
      <FolderComponent />
    </div>
  );
}
```

## Source Files

- [components/craft/folder-component.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/folder-component.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
