Content Display

Expandable Folder

클릭하면 여러 장의 종이 카드가 펼쳐지는 폴더 일러스트입니다.

Preview

content stack

Expandable Folder

click to open stacked items

Installation

bash
Copied
1pnpm dlx shadcn@latest add https://ryong.dev/r/folder.json

Code

typescript
Copied
1import { Folder } from "@/components/folder"23export default function Example() {4  return <Folder color="#5227ff" />5}

Props

PropTypeDefaultDescription
colorstring"#5227FF"Folder base color.
sizenumber1Scale multiplier.
itemsReact.ReactNode[][]Custom paper content.
paperVariant"paper" | "glass""paper"Paper surface style.
classNamestring-Additional classes merged onto the component.

Reference

ReactBits Expandable Folder