UI ComponentsLayout
Section Stack
Coordinate spacing and dividers between adjacent sections.
Import
import { SectionStack, Section } from "@puzzle-ui/ui";Shared themes and dividers
Adjacent direct Sections with matching themes receive compact adjoining spacing. divideY adds dividers between sections.
API
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Required | Prefer direct Section children. |
divideY | boolean | - | Add dividers after non-final sections. |
className | string | - | Root class. |
Other children render unchanged, but interrupt same-theme adjacency. Wrapping a Section in another component prevents direct-child coordination.