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.
BoxBorderBoxBorder—Style of the border. Default is Rounded. See BoxBorder for available styles.
Common
ChildContentRenderFragment—Renders a simple border around content without a title (simplified wrapper for Panel).
Other
PaddingPadding—Padding inside the border as (left, top, right, bottom). Default is (0, 0, 0, 0).

API