Paper Folder
A folder that teases its pages on hover and opens on click: the flap drops, the pages spread out, and each one can be dragged out, dropped back or brought up close.
pixikit.com/docs/components/paper-folder
Customize
Mode
Variant
Layout
Color
Paper color
Tab position
Open on
Default open
Draggable
Zoom on click
Peek
Intro
Size1.30
Frost0.25
Tilt0.50
Speed1.00
Bounce0.40
Close on outside click
Theme
Props
28| Name | Type | Default | Description |
|---|---|---|---|
items | PaperFolderItem[] | None | What the folder holds, up to 6. Each item can be a string, { title, description }, { image, title, alt }, { content } or a React element. |
children | ReactNode | None | Your own items as children. Each child becomes one page in the folder. |
mode | "flap" | "book" | "flap" | flap stands the folder up and drops the front flap open. book lays it flat and swings the cover over like a book. |
variant | "solid" | "glass" | "matte" | "solid" | Material of the folder. glass turns the front into refracting glass that shows the pages inside. |
layout | "spread" | "stack" | "row" | "spread" | How the items are laid out once the folder is open. |
color | string | "#3d8bff" | Color of the folder. Shades are derived from it. |
paperColor | string | "#ffffff" | Color of the pages. |
label | string | None | Text on the tab. The tab grows to fit it. |
tabPosition | "left" | "center" | "right" | "right" | Where the tab sits along the top edge. |
openOn | "click" | "hover" | "click" | Opens the folder on click, or while the cursor is over it. |
open | boolean | None | Controls the folder from outside. Leave it out to let the folder manage itself. |
defaultOpen | boolean | false | Starts the folder open. |
onOpenChange | (open: boolean) => void | None | Called when the folder opens or closes. |
onItemClick | (item: PaperFolderItem, index: number) => void | None | Called when an item is clicked while the folder is open or after it was dragged out. |
onItemDrop | (item: PaperFolderItem, index: number, inside: boolean) => void | None | Called when a dragged item is let go, with whether it landed back in the folder. |
draggable | boolean | true | Lets people drag items out of the folder, leave them anywhere and drop them back in. |
zoomOnClick | boolean | true | Clicking an item brings it up close. Click it again, press Escape or click away to put it back. |
peek | boolean | true | Teases the items out on hover. In flap mode the page under the cursor rises highest. |
intro | boolean | true | Plays an entrance when the folder scrolls into view: the pages drop in and the folder closes over them. |
size | number | 1 | Scale of the whole folder. |
frost | number | 0.25 | How much the glass front blurs what is behind it, from 0 for clear glass to 1. Used by the glass variant. |
tilt | number | 0.5 | How much the folder tilts toward the cursor, from 0 to 1.5. |
speed | number | 1 | Speed of every animation. |
bounce | number | 0.4 | How much the flap, cover and pages overshoot as they settle, from 0 to 1. |
closeOnOutsideClick | boolean | true | Closes the folder on a click outside it or on Escape. |
theme | "dark" | "light" | "dark" | Tunes the shadows for dark or light pages. |
className | string | "" | Extra class names for the container. |
style | CSSProperties | None | Inline styles for the container. |