Components / Frames

Hatch Divider

A hatched band between two lines for separating page sections, with marks where it meets the page rails.

Customize

Mark
Height
20px
Bleed
0px

Installation

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

Examples

Between page rails

In a column that draws its own side rails, the marks land on the intersections. This site's pages are built this way.

Section one

Section two

Section three

Good to know

  • Set bleed to true to run the lines a full viewport width each way. The page then needs overflow-x: clip on an ancestor.

API reference

HatchDivider

tsx
import { HatchDivider } from "@/components/hatch-divider";
PropTypeDefault
bleedboolean | number | string

How far the top and bottom lines run past the band. true runs them a full viewport width each way.

false
mark"bracket" | "square" | "plus" | "dot" | false

Mark drawn where the band's lines meet its sides.

"square"

Also accepts every Frame prop and every div attribute. Set its height with a class such as h-5.