FlexBox

Class
Namespace: RazorConsole.Components
Assembly: RazorConsole.Core

Definition

public class FlexBox : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

1
NameTypeDescription
FlexBox()Constructor

Properties

8
NameTypeDescription
Appearance
HeightNullable<Int32>Explicit height constraint in lines. When null, uses the natural content height.
WidthNullable<Int32>Explicit width constraint in characters. When null, uses all available width.
Common
ChildContentRenderFragmentThe child content to lay out within the flex container.
Other
AlignFlexAlignHow items are aligned along the cross axis. Default is Start.
DirectionFlexDirectionLays out child content using a CSS-like flexbox model with configurable direction, justification, alignment, wrapping, and gap.
GapInt32Spacing between items along the main axis in characters (Row) or lines (Column). Default is 0.
JustifyFlexJustifyHow free space is distributed along the main axis. Default is Start.
WrapFlexWrapWhether items wrap to new lines when they exceed the available space. Default is NoWrap.

Methods

1
NameTypeDescription
BuildRenderTree(RenderTreeBuilder)()Method