Developers
Start building
Themes/Theme SDK/Modules/layout

layout

Layout primitives and section chrome: containers, stacks, rows, grids and section frames.

On this page
import { … } from '@poltura/theme-sdk/layout';

Parts

NameWhat it is
ContainerA centred box at the theme's content width, with the theme's side padding.
StackChildren stacked top to bottom with an even gap.
RowChildren side by side with an even gap, optionally wrapping.
GridChildren in equal columns whose count can change at each breakpoint.
SectionShellThe standard section frame: vertical rhythm, a hairline above, and a content-width container.
SectionHeadingA section's heading with an optional subtitle; draws nothing when both are empty.
SectionCtaA section's call-to-action button; draws nothing without a link and a label.
PageHeroThe opening band of a content page: its title, a description and optional extra content.

Types

NameWhat it is
ContainerWidthHow wide a Container runs: the theme's content width, a wider band, or the full viewport.
LayoutGapA spacing step from the theme's scale, used for gaps.
LayoutAlignHow children line up across the layout's cross axis.
LayoutJustifyHow children spread along a row.
ResponsiveValueA value that can change at the theme's breakpoints; base applies below the first one.
ContainerPropsProps of Container.
StackPropsProps of Stack.
RowPropsProps of Row.
GridPropsProps of Grid.
SectionShellPropsProps of SectionShell.
SectionHeadingPropsProps of SectionHeading.
SectionCtaPropsProps of SectionCta.
PageHeroPropsProps of PageHero.
Last updated