Section Frame

Decorative wrapper that adds subtle border lines and background tint to content sections. Creates a framed, technical aesthetic.

Default (All Lines)

Framed Section

Content inside the frame with subtle borders and background.

tsx
<SectionFrame>
  <div className="py-16 px-4">
    <h2>Framed Section</h2>
    <p>Content inside the frame.</p>
  </div>
</SectionFrame>

Horizontal Lines Only

Horizontal Lines Only

Top and bottom lines without side borders.

tsx
<SectionFrame showSides={false}>
  <div>Content</div>
</SectionFrame>

Top Line Only

Top Line Only

Single top divider line.

tsx
<SectionFrame showBottom={false} showSides={false}>
  <div>Content</div>
</SectionFrame>

No Background

No Background

Frame lines without the subtle background tint.

tsx
<SectionFrame showBackground={false}>
  <div>Content</div>
</SectionFrame>

Design Details

Horizontal Lines

Span full viewport width (edge to edge)

Vertical Lines & Background

Aligned to content max-width (1200px) with responsive padding

Line Color

var(--foreground-subtle) — ~5% foreground opacity

Background Color

var(--foreground-subtle) — ~5% foreground opacity

Common Patterns

Section Divider

<SectionFrame showBottom={false} showSides={false}>

Full Frame (Technical Look)

<SectionFrame> — All props default to true

Content Band

<SectionFrame showSides={false}>

Props

PropTypeDefaultDescription
showTopbooleantrueShow top border line
showBottombooleantrueShow bottom border line
showSidesbooleantrueShow left and right border lines
showBackgroundbooleantrueShow subtle background tint
classNamestring-Additional CSS classes
children*ReactNode-Section content

Import

tsx
import { SectionFrame } from '@/components/ui/SectionFrame'