import "capsomer/tokens.css";
import "capsomer/section-band.css";
import { SectionBand } from "capsomer/react/section-band";
Usage
<section class="cap-section-band" data-cut="slant" data-overlap aria-label="Our work in numbers">
<div class="cap-page">...</div>
</section>
Examples
Slanted over its neighbors
<div class="band-demo-page">
<div class="band-demo-before">The section before</div>
<section class="cap-section-band" data-cut="slant" data-overlap id="sb-slant" aria-label="Slanted band">
<p class="band-demo">Trusted by researchers at Example University and Example Institute.</p>
</section>
<div class="band-demo-after">The section after</div>
</div>
API reference
SectionBand
Prop
Type
Required
Does
children
ReactNode
Yes
cut
"slant"
"slant": diagonal top and bottom edges with a translucent wedge along each.
overlap
boolean
Pull the band over its neighbors by the slant's depth.
Nothing to operate; its content is in reading order.
The band's text color must reach 4.5:1 on --cap-band-bg; the default pair (--accent-1 on --accent-12) is in the contrast report, and a site that sets its own band checks its pair.
Forced colors: the band draws a rule at its top and bottom, since its color is gone.