Padder

Layout

Adds padding around its children.

@using Spectre.Console
@using RazorConsole.Components

<Border>
    <Padder Padding="new Padding(2, 1, 2, 1)">
        <Markup Content="Padded content" />
    </Padder>
</Border>

Parameters

6
NameTypeDefaultDescription
Appearance
FillHeightBoolean—Whether the padder should fill the height offered by its parent.
FillWidthBoolean—Whether the padder should fill the width offered by its parent.
Common
ChildContentRenderFragment—Content to which padding will be applied.
Other
ExpandBoolean—Whether the padder should expand to fill available space in native widget layout containers.
MarginPadding—Margin to apply outside the padded content.
PaddingPadding—Padding to apply as (left, top, right, bottom) in characters. Default is (0, 0, 0, 0). Example: new Padding(2, 1, 2, 1) adds 2 characters horizontally and 1 line vertically.

API