Skip to content
PixiKit

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
NameTypeDefaultDescription
itemsPaperFolderItem[]NoneWhat the folder holds, up to 6. Each item can be a string, { title, description }, { image, title, alt }, { content } or a React element.
childrenReactNodeNoneYour 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.
colorstring"#3d8bff"Color of the folder. Shades are derived from it.
paperColorstring"#ffffff"Color of the pages.
labelstringNoneText 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.
openbooleanNoneControls the folder from outside. Leave it out to let the folder manage itself.
defaultOpenbooleanfalseStarts the folder open.
onOpenChange(open: boolean) => voidNoneCalled when the folder opens or closes.
onItemClick(item: PaperFolderItem, index: number) => voidNoneCalled when an item is clicked while the folder is open or after it was dragged out.
onItemDrop(item: PaperFolderItem, index: number, inside: boolean) => voidNoneCalled when a dragged item is let go, with whether it landed back in the folder.
draggablebooleantrueLets people drag items out of the folder, leave them anywhere and drop them back in.
zoomOnClickbooleantrueClicking an item brings it up close. Click it again, press Escape or click away to put it back.
peekbooleantrueTeases the items out on hover. In flap mode the page under the cursor rises highest.
introbooleantruePlays an entrance when the folder scrolls into view: the pages drop in and the folder closes over them.
sizenumber1Scale of the whole folder.
frostnumber0.25How much the glass front blurs what is behind it, from 0 for clear glass to 1. Used by the glass variant.
tiltnumber0.5How much the folder tilts toward the cursor, from 0 to 1.5.
speednumber1Speed of every animation.
bouncenumber0.4How much the flap, cover and pages overshoot as they settle, from 0 to 1.
closeOnOutsideClickbooleantrueCloses the folder on a click outside it or on Escape.
theme"dark" | "light""dark"Tunes the shadows for dark or light pages.
classNamestring""Extra class names for the container.
styleCSSPropertiesNoneInline styles for the container.

More interaction components in Pro

View all

Related