Folder
A tactile folder - unified skeleton cards (or your own photos) tuck behind a frosted-glass front pocket. Pick a Hugeicons badge, any body color, and squircle corners throughout. It also powers File Uploader's folder variant - see that page for the real drag-and-drop, opens-on-hover, upload-progress demo.
Installation
npx stepwise-ui add folder
Showcase
Fan on hover
Hover, tap, or focus the folder and the cards lift out into a shallow arc. Hovering one shows its name; arrows page through five at a time and wrap around at either end.
Colors & icon
Drive the folder color live with the ColorSwatch component, and pick any Hugeicons badge - it adopts a darker shade of the folder.
Props
PropTypeDescription
labelstringTitle under the folder.
countstringCount / subtitle line.
colorstringFolder body color (any CSS color).
iconIconSvgElementA Hugeicons icon shown on the front pocket.
filesFolderFile[]{ thumb, name, progress } - photo, skeleton card, or both; name shows in a tooltip on hover.
peeknumberSkeleton cards to show when no files given. Default 3.
blurnumberFrosted-glass blur on the pocket, px. Default 6.
sizenumberFolder width in px. Default 260.
progressnumberOverall upload progress 0–100.
showLabelbooleanShow the title. Default true.
showCountbooleanShow the count line. Default true.
interactivebooleanEnable drag-drop + click-to-browse.
toggleOnClickbooleanTap toggles the fan - the touch/keyboard path to the hover reveal. Off when an ancestor owns the click. Defaults to on unless interactive.
onFiles(files: File[]) => voidFires with dropped/selected files.
classNamestringMerged onto the root.