FlexBox
ClassNamespace:
RazorConsole.ComponentsAssembly:
RazorConsole.CoreDefinition
public class FlexBox : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderConstructors
1| Name | Type | Description |
|---|---|---|
FlexBox() | Constructor | — |
Properties
8| Name | Type | Description |
|---|---|---|
Appearance | ||
Height | Nullable<Int32> | Explicit height constraint in lines. When null, uses the natural content height. |
Width | Nullable<Int32> | Explicit width constraint in characters. When null, uses all available width. |
Common | ||
ChildContent | RenderFragment | The child content to lay out within the flex container. |
Other | ||
Align | FlexAlign | How items are aligned along the cross axis. Default is Start. |
Direction | FlexDirection | Lays out child content using a CSS-like flexbox model with configurable direction, justification, alignment, wrapping, and gap. |
Gap | Int32 | Spacing between items along the main axis in characters (Row) or lines (Column). Default is 0. |
Justify | FlexJustify | How free space is distributed along the main axis. Default is Start. |
Wrap | FlexWrap | Whether items wrap to new lines when they exceed the available space. Default is NoWrap. |
Methods
1| Name | Type | Description |
|---|---|---|
BuildRenderTree(RenderTreeBuilder)() | Method | — |