Components / Frames

Blueprint

A pattern fill behind a border, with marks at the corners.

grid 16px

Customize

Pattern
Spacing
16px
Mark
Border

Installation

Blueprint is a recipe: a few layers of frame put together, not a component of its own. Install frame, then copy the code from the preview above.

npx shadcn@latest add https://fancyborders.vercel.app/r/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.

API reference

FrameFill

tsx
import { FrameFill } from "@/components/ui/frame";
PropTypeDefault
pattern"hatch" | "cross" | "dots" | "grid"

The pattern painted behind the content.

"hatch"
sizenumber | string

Spacing between lines or dots.

6
thicknessnumber | string

Line width, or dot radius.

1
anglestring

Direction of the hatch lines.

"135deg"
insetnumber | string

Distance kept clear from the frame's edge.

0
colorstring

Colour of the pattern. Defaults to the line colour.

–

Also accepts every div attribute, such as className and style.

FrameBorder

tsx
import { FrameBorder } from "@/components/ui/frame";
PropTypeDefault
variant"solid" | "dashed" | "dotted" | "double"

The CSS border style.

"solid"
offsetnumber | string

Distance from the frame's edge. Positive is outward, negative inward.

0
radiusnumber | string

Overrides the frame's radius for this layer.

–
colorstring

Overrides the frame's line colour for this layer.

–

Also accepts every div attribute, such as className and style.

FrameCorners

tsx
import { FrameCorners } from "@/components/ui/frame";
PropTypeDefault
mark"bracket" | "square" | "plus" | "dot"

Built-in mark. Ignored when children are given.

"bracket"
childrenReactNode

A custom mark, drawn for the top-left corner and repeated on the rest.

–
corners("tl" | "tr" | "br" | "bl")[]

Which corners get a mark.

all four
sizenumber | string

Width and height of each mark. The default depends on the mark: bracket, square, plus, dot.

12, 7, 11 or 5
thicknessnumber | string

Line width of the mark, when different from the frame's.

–
align"inside" | "center"

inside tucks the mark into the corner, center centres it on the frame's line. Brackets and custom marks default to inside.

–
rotateboolean

Rotate each mark to face its corner. Turn off for upright content.

true
offsetnumber | string

Distance from the frame's edge. Positive is outward, negative inward.

0
radiusnumber | string

Radius of a bracket's corner, when different from the frame's.

–
colorstring

Colour of the marks. Defaults to the text colour.

–

Also accepts every div attribute, such as className and style.