Conigma Connect
Stack
Discriminator: stack
Fluent UI Blazor Component: FluentStack
Description
The Stack component is a layout container that arranges its child components either horizontally or vertically. It provides control over alignment, spacing, and wrapping behavior. Stack is the primary building block for creating complex layouts by nesting multiple components together.
Properties
Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| ✅ Yes |
| Type discriminator |
|
| No |
| Inline CSS style |
|
| No |
| Component identifier for data binding |
|
| No |
| Array of child components to render inside the stack |
|
| No |
| Layout direction: |
|
| No |
| Vertical alignment of children: |
|
| No |
| Horizontal alignment of children: |
|
| No |
| Horizontal gap between children in pixels |
|
| No |
| Vertical gap between children in pixels |
|
| No |
| Whether children should wrap to the next line when they exceed the available space |
|
| No |
| Whether to reverse the order of children |
Data Binding
The Stack component aggregates data from all its children. When a button's data binding references component IDs inside a stack, the stack automatically collects data from each child and merges it.
Similarly, validation is aggregated — validating a stack returns all validation errors from all children.
JSON Example
Vertical Stack
Rendering...
Horizontal Stack with Wrapping
Rendering...