Bracket Frame
Corner brackets around a dashed border.
Project name
★ 922Customize
Bracket14px
Thickness2px
Gap6px
Radius0px
Installation
npx shadcn@latest add https://fancyborders.vercel.app/r/bracket-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 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";| Prop | Type | Default |
|---|---|---|
| bracket | number | stringLength of each bracket arm. | 14 |
| thickness | number | stringLine width of the brackets. | 2 |
| gap | numberSpace between the brackets and the dashed border inside them. | 6 |
Also accepts every Frame prop and every div attribute.