Components / Frames

Bracket Frame

Corner brackets around a dashed border.

Project name

★ 922

Customize

Bracket
14px
Thickness
2px
Gap
6px
Radius
0px

Installation

npx shadcn@latest add https://fancyborders.vercel.app/r/bracket-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 brackets sit on the box edge and the dashed border is drawn inside them, so give the frame at least as much padding as the gap.

API reference

BracketFrame

tsx
import { BracketFrame } from "@/components/bracket-frame";
PropTypeDefault
bracketnumber | string

Length of each bracket arm.

14
thicknessnumber | string

Line width of the brackets.

2
gapnumber

Space between the brackets and the dashed border inside them.

6

Also accepts every Frame prop and every div attribute.