Components / Shapes

Folder Frame

A folder with a tab on its top edge and a sloping shoulder down to the body.

invoices

March 2026

14 files · 2.1 MB

Customize

Tab side
Tab width
112px
Tab height
28px
Slope
14px
Radius
10px

Installation

npx shadcn@latest add https://fancyborders.vercel.app/r/folder-frame.json

The CLI copies the component into your project, adds anything it is built on, and writes its CSS into your global stylesheet. New to the CLI? See Installation.

Good to know

  • The tab's content goes in the tab prop. The children start below the tab, so pad them rather than the frame.
  • The outline is a plain polygon, so the border, fill and drop-shadow follow it in every browser.

API reference

FolderFrame

tsx
import { FolderFrame } from "@/components/folder-frame";
PropTypeDefault
tabReactNode

Content of the tab, such as a label.

–
tabSide"left" | "right"

Which end of the top edge the tab sits on.

"left"
tabWidthnumber

Width of the tab's top edge, in pixels.

112
tabHeightnumber

Height of the tab, in pixels.

28
slopenumber

How far the tab's shoulder runs sideways on its way down, in pixels.

14
radiusnumber

Radius of the corners, in pixels.

10

Also accepts line, fill, color and every div attribute.