# Folder FAQ

> An FAQ laid out as files in a drawer: each question peeks out on its tab, and opening one lifts it from the stack while the folders in front slide down to uncover the answer.

## Spec sheet

| | |
| --- | --- |
| Access | Free: no account, free for commercial use |
| Shelf | Blocks › FAQ |
| Live preview | https://uibrik.com/components/folder-faq |
| Writes | 1 file into `components/uibrik/folder-faq/` |
| Packages | `@tabler/icons-react`, `motion` (the CLI installs them) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

```bash
npx shadcn@latest add https://uibrik.com/r/folder-faq.json
```

With the `@uibrik` namespace in `components.json` ([setup](https://uibrik.com/docs/installation.md)): `npx shadcn@latest add @uibrik/folder-faq`.

Can't run commands? https://uibrik.com/components/folder-faq/prompt.txt has every file verbatim, with the setup steps, ready for an assistant to write.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { FolderFaq } from "@/components/uibrik/folder-faq/folder-faq";

const items = [
  { label: "Start", question: "What do I get with a free account?", answer: "Every component, the source for each one, and updates as new ones land. Pro adds the full templates and priority support." },
  { label: "Install", question: "How do I add a component to my project?", answer: "Copy the file into your codebase, or run the add command from its page. Components only depend on Motion and Tailwind." },
  // …4 more
];

<FolderFaq
  items={items}
  tabLayout="cascade"
  peek={64}
  tabWidth={132}
  lift={6}
  radius={16}
  sheet
  ruled
  size="md"
  defaultOpen={0}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/folder-faq.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `tabLayout` | `"cascade" \| "alternate" \| "left"` | `"cascade"` | Where the tabs sit: stepping across in threes, swapping sides, or all on the left. |
| `peek` | `number` | `64` | How much of each folder shows above the one in front, tab included. |
| `tabWidth` | `number` | `132` | Width of a tab. |
| `lift` | `number` | `6` | How far the open folder rises out of the stack. |
| `radius` | `number` | `16` | Corner radius of a folder. |
| `sheet` | `boolean` | `true` | Print the answer on a sheet of paper that rises out of the folder, its foot tucked behind the one in front. |
| `ruled` | `boolean` | `true` | Faint ruled lines on the sheet. |
| `size` | `"md" \| "lg"` | `"md"` | Text size of tabs, questions and answers. |
| `defaultOpen` | `number` | `0` | Folder open on mount, or -1 for none. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `items` (required) | `{ question: string; answer: string; label?: string }[]` |  | Questions, front of the drawer last. The label goes on the tab and defaults to the folder's number. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **Distinctive FAQ sections**: Questions peeking out on folder tabs make a help section stand out from standard accordions. Pairs with [Accordion](https://uibrik.com/components/accordion.md).
- **Document product help**: A drawer of files fits help centres for storage, docs and file-sharing products. Pairs with [Folder Peek](https://uibrik.com/components/folder-peek.md).
- **Case study details**: Lifting one file from the stack works for project notes and supporting details.

## Same shelf: FAQ

- [Magnetic FAQ](https://uibrik.com/components/magnetic-faq.md) (Pro): An FAQ as a cloud of question pills that lean toward the pointer; picking one grows it into the answer card while the rest drift away.
- [Mesh FAQ](https://uibrik.com/components/mesh-faq.md) (Pro): An FAQ of soft borderless cards where the open one fills with a warped, flowing mesh gradient in shades of its own colour that swirls under the pointer, the answer eases open as its words lift out of a blur, and the plus swings into a minus.
- [Orbit FAQ](https://uibrik.com/components/orbit-faq.md) (Pro): An FAQ whose categories orbit a hub: picking one turns the ring to face the questions, which fan out beside it on a matching arc.
- [Split Accordion](https://uibrik.com/components/split-accordion.md): Sections that sit together as one block. Opening one splits it away from its neighbours with an easing margin, rounds the corners at the break and reveals the answer; closing it merges the block back.
- [Accordion](https://uibrik.com/components/accordion.md): Sections that ease open to their height while the content fades up behind, one at a time or several, with full keyboard support.
- [Accordion Spine](https://uibrik.com/components/accordion-spine.md) (Pro): A timeline accordion drawn as one continuous line: opening an entry branches the line off its node and frames the entry's body, while the entries below slide down the spine like beads on a string.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/folder-faq/` so the import paths keep resolving.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
