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 width112px
Tab height28px
Slope14px
Radius10px
Installation
npx shadcn@latest add https://fancyborders.vercel.app/r/folder-frame.jsonThe 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";| Prop | Type | Default |
|---|---|---|
| tab | ReactNodeContent of the tab, such as a label. | – |
| tabSide | "left" | "right"Which end of the top edge the tab sits on. | "left" |
| tabWidth | numberWidth of the tab's top edge, in pixels. | 112 |
| tabHeight | numberHeight of the tab, in pixels. | 28 |
| slope | numberHow far the tab's shoulder runs sideways on its way down, in pixels. | 14 |
| radius | numberRadius of the corners, in pixels. | 10 |
Also accepts line, fill, color and every div attribute.