An animated folder whose cards fan out on hover and lift open on click, with a 3D-tilted flap. Supports color and size (sm/md/lg) props.
Hover to fan the cards out, then click to lift the folder open.
Options you can pass to customize this component.
colorblackwhiteblueColor theme of the folder, flap, and cards. Each theme sets matching fills, strokes, and inner shadows.
sizesmmdlgOverall scale of the folder. Maps to 0.65× (sm), 1× (md), and 1.35× (lg).
npx shadcn@latest add swamimalode07/rare-ui/folder-componentimport { Folder } from "@/components/ui/folder-component",export function Demo() {return <Folder color="blue" size="md" />}
Click the code icon in the top-right corner to view the source code.
Most components here are recreations of great work from around the web. I don't claim to be the original creator - this is my attempt to reverse-engineer, replicate, and often add a few extra features. I've tried to credit everyone; if I missed someone, let me know.
1