UI.MD

Section

A page-scale band: a full-bleed hairline marks the section boundary while the content stays on the page container.

Installation

$
npx shadcn@latest add https://ui.mattdowney.com/r/section.json

Usage

import { Section } from "@/components/ui/section"

Examples

Default

Each band draws its own closing hairline. The last band before a footer turns it off, so two rules do not stack.

Opening band

padTop lifts the top pad alone, for a hero that needs more air above it than below.

API Reference

PropTypeDefaultDescription
pad"region" | "section""region"Vertical breathing inside the band. region is the page tempo; section opens or closes the page.
padTop"region" | "section"-Overrides the top pad alone.
dividerbooleantrueThe closing hairline. Turn it off on the last band before a footer that draws its own top edge, or the two rules stack.
containerbooleantrueWhether the band builds its own centred container. Off when the caller has already centred and padded.