Skip to Content
Puzzle

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.

390 × 500

API

PropTypeDefaultDescription
childrenReactNodeRequiredPrefer direct Section children.
divideYboolean-Add dividers after non-final sections.
classNamestring-Root class.

Other children render unchanged, but interrupt same-theme adjacency. Wrapping a Section in another component prevents direct-child coordination.

;