Skip to content

uc-apx create region flexbox-container

Insert a themeTemplateComponent/flexboxContainer region — a layout-only container (no SQL, no columns) that arranges its CHILD regions in a flex row or column with declarative gap / alignment / wrapping.

This is a design helper, not a content component: use it to group regions into equal-height rows, side-by-side columns, or responsive wrapping layouts instead of fighting the 12-column grid. After creating it, point child regions at it with layout.parentRegion: @<this-id> and slot: subRegions.

uc-apx create region flexbox-container [flags]
FlagTypeDefaultDescription
--align-itemsstringCross-axis alignment: start, center, end, stretch (settings.alignItems)
--column-spanint12-col grid span for the container’s own layout (0 = omit)
--directionstringFlex direction: row or column (settings.direction)
--dry-runPrint rendered region to stdout without writing
--flex-behaviorstringFlex behavior: growIfNeeded, … (settings.flexBehavior)
--forceReplace an existing same-id region on the page
--gapstringGap between items: sm, md, lg, … (settings.gap)
--idstringRegion id (default: kebab-case of —name). Child regions reference this as @<id>.
--justify-contentstringMain-axis distribution: start, center, end, spaceBetween, … (settings.justifyContent)
--namestringDisplay name of the region [required]
--no-new-rowEmit startNewRow: false so this container sits next to the previous region
--pagestringTarget page (numeric ID, alias, or name) [required]
--sequenceintLayout sequence (default: max existing + 10)
--slotstringbodyPage slot to place the container in
--wrapstringWrapping: wrap or noWrap (settings.wrap)
FlagTypeDefaultDescription
--app-dirstring.Path to the APEX application directory
--json-prettyOutput in pretty-printed JSON (human-readable) instead of minified JSON
--toonOutput in TOON format (human-readable, token-efficient) instead of JSON

Using --dry-run to preview the generated construct (no files are written):

Terminal window
uc-apx --app-dir examples/brookstrut create region flexbox-container --page 46 --name Cards Row --direction row --gap lg --align-items stretch --dry-run
Generated APEXlang
region cards-row (
name: Cards Row
type: themeTemplateComponent/flexboxContainer
layout {
sequence: 50
slot: body
}
componentAppearance {
display: regionOnly
}
settings {
direction: row
gap: lg
alignItems: stretch
}
)