Skip to main content

Variable: Spinner

const Spinner: "Spinner"

Defined in: react/src/generated/jsx.ts:15309

Displays an icon-size spinning animation.

It is often used as an alternative to a [class@Gtk.ProgressBar] for displaying indefinite activity, instead of actual progress.

To start the animation, use [method@Gtk.Spinner.start], to stop it use [method@Gtk.Spinner.stop].

CSS nodes

GtkSpinner has a single CSS node with the name spinner. When the animation is active, the :checked pseudoclass is added to this node.

Accessibility

GtkSpinner uses the [enum@Gtk.AccessibleRole.progress_bar] role.