Border
DisplayCreates 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| Name | Type | Default | Description |
|---|---|---|---|
Appearance | |||
BorderColor | Color? | — | Color of the border. If null , uses default console color. |
BoxBorder | BoxBorder | — | Style of the border. Default is Rounded. See BoxBorder for available styles. |
Common | |||
ChildContent | RenderFragment | — | Renders a simple border around content without a title (simplified wrapper for Panel). |
Other | |||
Padding | Padding | — | Padding inside the border as (left, top, right, bottom). Default is (0, 0, 0, 0). |