Tesserae

Spinner

Description

The Spinner component is a visual indicator that displays an animated circle outline, suggesting that a background process is running. It is commonly used when the duration of the task is unknown, serving as an indeterminate progress indicator. The Spinner supports various sizes and allows positioning of an associated label to provide additional context (for example, "Loading...", "Saving...", etc.). It is part of the Progress group in Tesserae's UI components.

Usage

Instantiate the Spinner component using the Tesserae.UI helper methods. You can create a spinner with initial text and further customize its size and label position. The following sample demonstrates a basic usage:

Methods

  • Success()
    Adds a success indicator style to the spinner.
    • Returns: Spinner instance.
    • Usage: spinner.Success();

  • Danger()
    Adds a danger indicator style to the spinner.
    • Returns: Spinner instance.
    • Usage: spinner.Danger();

  • Primary()
    Resets any success or danger indicator styles, setting the spinner to a primary style.
    • Returns: Spinner instance.
    • Usage: spinner.Primary();

  • Left()
    Sets the label position to left of the spinner.
    • Returns: Spinner instance.
    • Usage: spinner.Left();

  • Right()
    Sets the label position to right of the spinner.
    • Returns: Spinner instance.
    • Usage: spinner.Right();

  • Above()
    Sets the label position above the spinner.
    • Returns: Spinner instance.
    • Usage: spinner.Above();

  • Below()
    Sets the label position below the spinner.
    • Returns: Spinner instance.
    • Usage: spinner.Below();

  • XSmall()
    Adjusts the spinner size to extra small.
    • Returns: Spinner instance.
    • Usage: spinner.XSmall();

  • Small()
    Adjusts the spinner size to small.
    • Returns: Spinner instance.
    • Usage: spinner.Small();

  • Medium()
    Adjusts the spinner size to medium.
    • Returns: Spinner instance.
    • Usage: spinner.Medium();

  • Large()
    Adjusts the spinner size to large.
    • Returns: Spinner instance.
    • Usage: spinner.Large();

  • SetText(string text)
    Sets the label text associated with the spinner.
    • Parameter: text - the new text to display.
    • Returns: Spinner instance.
    • Usage: spinner.SetText("Please wait...");

Properties

  • Position
    Gets or sets the label position relative to the spinner.
    • Type: Spinner.LabelPosition
    • Available values: Above, Below, Left, Right
    • Usage: spinner.Position = Spinner.LabelPosition.Left;

  • Size
    Gets or sets the spinner's size.
    • Type: Spinner.CircleSize
    • Available values: XSmall, Small, Medium, Large
    • Usage: spinner.Size = Spinner.CircleSize.Large;

  • Text
    Gets or sets the label text of the spinner.
    • Type: string
    • Usage: spinner.Text = "Processing...";

Samples

Various Spinner Sizes

Spinner with Label Positioning

See also

© 2026 Tesserae. All rights reserved.