Border

Display

Creates a bordered panel around its children.

@using Spectre.Console
@using RazorConsole.Components

<Border BoxBorder="BoxBorder.Rounded" BorderColor="Color.Blue">
    <Markup Content="Content inside border" />
</Border>

Parameters

4
NameTypeDefaultDescription
Appearance
BorderColorColor?Color of the border. If null , uses default console color.
BoxBorderBoxBorderStyle of the border. Default is Rounded. See BoxBorder for available styles.
Common
ChildContentRenderFragmentRenders a simple border around content without a title (simplified wrapper for Panel).
Other
PaddingPaddingPadding inside the border as (left, top, right, bottom). Default is (0, 0, 0, 0).

API