Skip to main content
cngx-src documentation

CngxStack

ComponentPrimaryOnPushv0.1.0

projects/ui/layout/stack.component.ts

Import#

import { CngxStack } from '@cngx/ui/layout'

Description#

Composable flex-based stack layout component.

Gap tokens use CSS custom properties (--cngx-gap-xs through --cngx-gap-xl) with sensible fallback defaults. Override them at any scope to match your application's spacing scale.

Item 1
Item 2

Metadata#

Host#

Index#

Inputs#

input()

Cross-axis alignment of stack items.

default 'stretch'
input()

Flex direction of the stack.

default 'column'
input()

Named spacing token between stack items. Resolves via --cngx-gap-* CSS custom properties.

default 'md'

HostBindings#

BindingExpression
[style.flex-direction]direction()
[style.align-items]alignItems()
[style.gap]gapValue()