Projects
Brand guidelines
Launch plan
Moodboard
Projects
Label
Size
1.3
Frost
0.25
Tilt
0.5
Speed
Bounce
0.4

More components in Pro

Galleries, cards and interactive pieces for pages that need more than the basics.

View all 255
28 properties
itemsFolderItem[]Three sample documentsWhat the folder holds, up to 6. Each item can be a string, { title, description }, { image, title, alt }, { content } or a React element.
childrenReactNodeundefinedYour 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'#3d8bff'Color of the folder. Shades are derived from it.
paperColor'#ffffff'Color of the pages.
labelundefinedText 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.
openundefinedControls the folder from outside. Leave it out to let the folder manage itself.
defaultOpenStarts the folder open.
onOpenChange(open: boolean) => voidundefinedCalled when the folder opens or closes.
onItemClick(item, index: number) => voidundefinedCalled when an item is clicked while the folder is open or after it was dragged out.
onItemDrop(item, index: number, inside: boolean) => voidundefinedCalled when a dragged item is let go, with whether it landed back in the folder.
draggableLets people drag items out of the folder, leave them anywhere and drop them back in.
zoomOnClickClicking an item brings it up close. Click it again, press Escape or click away to put it back.
peekTeases the items out on hover. In flap mode the page under the cursor rises highest.
Plays an entrance when the folder scrolls into view: the pages drop in and the folder closes over them.
sizeScale of the whole folder.
frost0.25How much the glass front blurs what is behind it, from 0 for clear glass to 1. Used by the glass variant.
tilt0.5How much the folder tilts toward the cursor, from 0 to 1.5.
speedSpeed of every animation.
bounce0.4How much the flap, cover and pages overshoot as they settle, from 0 to 1.
closeOnOutsideClickCloses the folder on a click outside it or on Escape.
theme'dark' | 'light''dark'Tunes the shadows for dark or light pages.
Extra class names for the container.
undefinedInline styles for the container.
itemsFolderItem[]

What the folder holds, up to 6. Each item can be a string, { title, description }, { image, title, alt }, { content } or a React element.

DefaultThree sample documents
childrenReactNode

Your own items as children. Each child becomes one page in the folder.

Defaultundefined
mode'flap' | 'book'

flap stands the folder up and drops the front flap open. book lays it flat and swings the cover over like a book.

Default'flap'
variant'solid' | 'glass' | 'matte'

Material of the folder. glass turns the front into refracting glass that shows the pages inside.

Default'solid'
layout'spread' | 'stack' | 'row'

How the items are laid out once the folder is open.

Default'spread'
colorstring

Color of the folder. Shades are derived from it.

Default'#3d8bff'
paperColorstring

Color of the pages.

Default'#ffffff'
labelstring

Text on the tab. The tab grows to fit it.

Defaultundefined
tabPosition'left' | 'center' | 'right'

Where the tab sits along the top edge.

Default'right'
openOn'click' | 'hover'

Opens the folder on click, or while the cursor is over it.

Default'click'
openboolean

Controls the folder from outside. Leave it out to let the folder manage itself.

Defaultundefined
defaultOpenboolean

Starts the folder open.

onOpenChange(open: boolean) => void

Called when the folder opens or closes.

Defaultundefined
onItemClick(item, index: number) => void

Called when an item is clicked while the folder is open or after it was dragged out.

Defaultundefined
onItemDrop(item, index: number, inside: boolean) => void

Called when a dragged item is let go, with whether it landed back in the folder.

Defaultundefined
draggableboolean

Lets people drag items out of the folder, leave them anywhere and drop them back in.

zoomOnClickboolean

Clicking an item brings it up close. Click it again, press Escape or click away to put it back.

peekboolean

Teases the items out on hover. In flap mode the page under the cursor rises highest.

introboolean

Plays an entrance when the folder scrolls into view: the pages drop in and the folder closes over them.

sizenumber

Scale of the whole folder.

frostnumber

How much the glass front blurs what is behind it, from 0 for clear glass to 1. Used by the glass variant.

Default0.25
tiltnumber

How much the folder tilts toward the cursor, from 0 to 1.5.

Default0.5
speednumber

Speed of every animation.

bouncenumber

How much the flap, cover and pages overshoot as they settle, from 0 to 1.

Default0.4
closeOnOutsideClickboolean

Closes the folder on a click outside it or on Escape.

theme'dark' | 'light'

Tunes the shadows for dark or light pages.

Default'dark'

Extra class names for the container.

Inline styles for the container.

Defaultundefined
Folder — React Component | React Bits