RzSpinner
The RzSpinner component provides a visual indicator for loading or processing states. It renders an SVG animation that is styled according to the current theme, supporting various sizes and semantic colors. The default spinner uses the medium size and the theme's 'OnSurface' color. Spinners are available in multiple sizes using the `Size` parameter. Customize the spinner's color using the `Color` parameter with semantic color options.<RzSpinner />
<RzSpinner Size="Size.ExtraSmall" />
<RzSpinner Size="Size.Small" />
<RzSpinner Size="Size.Medium" />
<RzSpinner Size="Size.Large" />
<RzSpinner Size="Size.ExtraLarge" />
<RzSpinner Color="SemanticColor.Primary" />
<RzSpinner Color="SemanticColor.Secondary" />
<RzSpinner Color="SemanticColor.Success" />
<RzSpinner Color="SemanticColor.Info" />
<RzSpinner Color="SemanticColor.Warning" />
<RzSpinner Color="SemanticColor.Danger" />
<RzSpinner Color="SemanticColor.OnSurfaceStrong" />
Property Description Size Size – Specifies the size of the spinner. Options: ExtraSmall
, Small
, Medium
, Large
, ExtraLarge
. (Default: Medium
)Color SemanticColor – Determines the fill color of the spinner. Defaults to None
, which uses the theme's default 'OnSurface' color. Options include Primary
, Secondary
, Success
, Info
, Warning
, Danger
, etc.AriaLabel string? – Sets the accessible label for the spinner, announced by screen readers. Defaults to a localized "Loading...". It's recommended to provide a more specific label indicating what is loading (e.g., "Loading user data...").