Rare UI is only available on desktop.
Folder component
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.
Dependencies
Interaction Type
Hover to fan the cards out, then click to lift the folder open.
Props
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).
Installation
npx shadcn@latest add swamimalode07/rare-ui/folder-componentHow to use
import { Folder } from "@/components/ui/folder-component",
export function Demo() {
return <Folder color="blue" size="md" />
}Source Code
Click the code icon in the top-right corner to view the source code.
Keep in mind
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.
License & Usage