Spinner

Utilities

Shows a Spectre spinner with optional message.

@using Spectre.Console
@using RazorConsole.Components

<Spinner Message="Loading..." />

Parameters

5
NameTypeDefaultDescription
Appearance
SpinnerTypeSpinner—Type of spinner animation. Default is Dots. See Known for all available styles.
StyleString—Spectre.Console style markup to apply. If null, uses default style.
Other
AutoDismissBoolean—Whether the spinner should automatically dismiss when complete. Default is false.
MessageString—Message displayed next to the spinner. If null or empty, no message is shown.
SpinnerNameString—Name of the spinner to use (alternative to SpinnerType). Takes precedence when specified.

API