spinner: Spinner

View source: R/widget-display.R

spinnerR Documentation

Spinner

Description

A small animation showing that work is in progress. It runs on a timer of the widget, so it stops automatically when the widget is removed.

Usage

spinner(
  label = "",
  type = "dots",
  interval = 0.1,
  id = NULL,
  classes = NULL,
  style = NULL
)

Arguments

label

Text shown after the spinner.

type

"dots", "line" or "arc" (ASCII "line" is used when the terminal cannot show Unicode).

interval

Seconds per frame.

id

Optional identifier.

classes

Optional classes.

style

A style().

Value

A Spinner with reactive label and spinning.

Examples

spinner("Loading data...")

termr documentation built on Oct. 21, 2026, 5:13 p.m.