Built-in Components
RazorConsole ships with 20+ ready-to-use components that wrap Spectre.Console constructs, designed to build beautiful TUI applications effortlessly.
Align
Wraps child content in an alignment container.
Border
Creates a bordered panel around its children.
BarChart
Renders a horizontal bar chart with optional label, colors and value display.
BreakdownChart
Displays a breakdown chart showing proportional data.
Columns
Arranges children in columns.
Figlet
Renders ASCII art text.
Grid
Arranges children in a grid layout.
ModalWindow
Renders a modal in a dialog.
Markdown
Renders markdown content.
Markup
Renders styled text with markup.
Padder
Adds padding around its children.
Panel
Creates a bordered panel with optional title.
Rows
Arranges children in rows.
Scrollable
Provides scrollable content area.
ViewHeightScrollable
Provides scrollable content area that scrolls through physical lines of any content. Has all functionalities of default Scrollable.
Select
Interactive dropdown for choosing a value with keyboard navigation.
StepChart
Renders a terminal step chart using Unicode box-drawing characters. Perfect for displaying discrete value changes over time or categories.
SyntaxHighlighter
Renders highlighted code blocks with SyntaxHighlightingService.
Spinner
Shows a Spectre spinner with optional message.
SpectreCanvas
Renders an array of pixels with different colors.
Newline
Emits a single line break. No parameters.
Table
Renders a data table.
TextInput
Single-line text input field.
TextButton
Interactive button component.
FlexBox
Lays out children using a CSS-like flexbox model with configurable direction, justification, alignment, wrapping, and gap.