Spinner
UtilitiesShows a Spectre spinner with optional message.
@using Spectre.Console
@using RazorConsole.Components
<Spinner Message="Loading..." />Parameters
5| Name | Type | Default | Description |
|---|---|---|---|
Appearance | |||
SpinnerType | Spinner | — | Type of spinner animation. Default is Dots. See Known for all available styles. |
Style | String | — | Spectre.Console style markup to apply. If null , uses default style. |
Other | |||
AutoDismiss | Boolean | — | Whether the spinner should automatically dismiss when complete. Default is false . |
Message | String | — | Message displayed next to the spinner. If null or empty, no message is shown. |
SpinnerName | String | — | Name of the spinner to use (alternative to SpinnerType). Takes precedence when specified. |