Sectionjsp
A band of the page: background, padding and colour mode.
Layout and type- Install
- npx shadcn add @jsp/section
- Import from
- @/components/section
- Guidance
- draft · v0.1.0
Examples
Written in jsp-ds token utilities.
background="page"
background="subtle"
background="muted"
Secondary text rebinds to text.subtle-on-muted here (ISS-14).
Ready when you are
No inverse button variants – the band sets data-mode for you.
Guidance
When to use
- For every band of a page. A page is a list of Sections.
Rules
- A Section owns its background, vertical padding, inner width and colour mode. Content inside never adds its own outer spacing.
background:page,subtle,mutedorinverse. Alternate page and subtle to separate bands; use inverse for one strong band.background="inverse"setsdata-mode="dark"– every component inside flips. Don't build inverse variants.paddinguses the layout spacing tokens, which step up at the breakpoints.- Give it a name:
labelledByits heading, oraria-label.
Install
Terminal
npx shadcn add @jsp/sectionImport
import { Section } from "@/components/section"