uibrik

Folder FAQ

New

Preview

Customize

Cascade
Peek64px
Tab width132px
Lift6px
Radius16px
Medium
Default open0

Usage

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

<FolderFaq items={items} />

Installation

npx shadcn@latest add https://uibrik.com/r/folder-faq.json
Adds the files to components/uibrik/folder-faq and installs @tabler/icons-react and motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/folder-faq.

Props

FolderFaq
tabLayout
Type "cascade" | "alternate" | "left"
"cascade"
Where the tabs sit: stepping across in threes, swapping sides, or all on the left.
peek
Type number
64
How much of each folder shows above the one in front, tab included.
tabWidth
Type number
132
Width of a tab.
lift
Type number
6
How far the open folder rises out of the stack.
radius
Type number
16
Corner radius of a folder.
sheet
Type 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
Type boolean
true
Faint ruled lines on the sheet.
size
Type "md" | "lg"
"md"
Text size of tabs, questions and answers.
defaultOpen
Type number
0
Folder open on mount, or -1 for none.
itemsrequired
Type { 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
Type string
–
Classes for the wrapper.