A Spinner is an outline of a circle which animates around itself indicating to the user that things are processing. A Spinner is shown when it's unsure how long a task will take making it the indeterminate version of a ProgressIndicator. They can be various sizes, located inline with content or centered. They generally appear after an action is being processed or committed. They are subtle and generally do not take up much space, but are transitions from the completed task.
For more details and examples visit the official docs. The R package can not handle each and every case, so for advanced use cases you need to work using the original docs to achieve the desired result.
Spinner(...)
string
Alternative status label for screen reader
'assertive' | 'polite' | 'off'
Politeness setting for label update announcement.
string
Additional CSS class(es) to apply to the Spinner.
IRefObject<ISpinner>
Optional callback to access the ISpinner interface. Use this instead of ref for accessing the public methods and properties of the component.
string
The label to show next to the Spinner. Label updates will be announced to the screen readers. Use ariaLive to control politeness level.
SpinnerLabelPosition
The position of the label in regards of the spinner animation.
SpinnerSize
The size of Spinner to render. { extraSmall, small, medium, large }
IStyleFunctionOrObject<ISpinnerStyleProps, ISpinnerStyles>
Call to provide customized styling that will layer on top of the variant rules.
ITheme
Theme (provided through customization.)
SpinnerType
Deprecated and will be removed at \>= 2.0.0. Use SpinnerSize
instead.
library(shiny.fluent)
if (interactive()) {
shinyApp(
ui = Spinner(size = 3, label = "Loading, please wait..."),
server = function(input, output) {}
)
}