Toggle Sidebar B
AppearanceLight & dark mode D

Folder Float

Folder that opens on hover or press: the flap tilts toward you, a paper edge rises, and its notes spring out from behind the flap into a floating cloud to pick from, then sink back when the folder closes.

Default

Every prop is wired to the controls underneath. Once the notes land they float, collide and can be dragged and thrown inside the cloud.

Dark previewReplay previewOpen in new tab

Customize

Trigger
Folder
Front
Paper
Item
Item Text
Label Color
Width200px
Height148px
Radius14px
Spread180px
Lift26px
Tilt8°
Flap Angle34°
Rest Angle16°
Open520ms
Stagger45ms
Bounce0.3
Drift0.5

API Reference

FolderFloat

PropTypeDefaultDescription
itemsArray<string | { label, value }>DEFAULT_ITEMSThe pills that float out. A string is its own value.
labelstring"Design feedback"The line on the flap.
sublabelstring""The dimmer line under it. Empty counts the notes.
trigger'hover' | 'click'"hover"Open on hover, or toggle on press.
defaultOpenbooleanfalseStart open.
closeOnSelectbooleantruePicking a pill closes the folder.
physicsbooleantrueOnce the pills land, a zero-gravity world takes over: they float, collide, and can be dragged and thrown inside the cloud.
driftnumber0.5Strength of the floating currents in the world. 0 holds still.
folderColorstring"#3f3f46"The back panel and its tab.
frontColorstring"#52525b"The flap.
paperColorstring"#f5f5f5"The paper edge that rises as it opens.
itemColorstring"#f5f5f5"The pills.
itemTextColorstring"#18181b"The pill text.
labelColorstring"#f5f5f5"The flap text.
widthnumber200Folder width in px.
heightnumber148Folder height in px, below the tab.
radiusnumber14Corner radius in px.
spreadnumber180Half the widest the cloud may be, in px. Pills pack into rows within it.
liftnumber26Gap between the folder and the lowest row, in px.
tiltnumber8Most a pill leans, in degrees.
flapAnglenumber34How far the flap tilts toward you when open, in degrees.
restAnglenumber16The flap tilt when closed, in degrees.
openDurationnumber520A pill's rise, in ms. The close is 60% of it.
staggernumber45Delay between pills, in ms. The close reverses the order.
bouncenumber0.3Overshoot of the rise. 0 lands dead.
@select(value, index) => void-A pill was picked.
@open-change(open) => void-The folder opened or closed.

Accessibility

Keyboard shortcuts and ARIA behavior.

Shortcut Description
Enter + SpaceToggle the folder from the flap button, or pick the focused note.
TabMove through the notes while the folder is open.
EscapeClose the folder.
  • Notes are real buttons and are hidden from assistive tech and removed from the tab order while the folder is closed.
  • With prefers-reduced-motion the notes fade in without the floating physics.