Package-level declarations

Spinners express an unspecified amount of wait time. They should be used when progress isn’t detectable, or if it’s not necessary to indicate how long an activity will take.

Light
Dark

Intents

A visible background may be added to display a background behind the spinner.

All intents from Spark are available for this component (SpinnerIntent.kt).

  • Basic

  • Accent

  • Main

  • Support

  • Surface

  • Success

  • Alert

  • Danger

  • Info

  • Neutral

  • Current (default)

The spinner has two sizes (SpinnerDefaults.kt):

  • Small (20.dp)

  • Medium (28.dp)

Types

Link copied to clipboard

Contains the default values used for LinearProgressIndicator and CircularProgressIndicator.

Link copied to clipboard
Link copied to clipboard

SpinnerIntent is used to define the intent of the chip.

Link copied to clipboard

Functions

Link copied to clipboard
fun CircularProgressIndicator(@FloatRange(from = 0.0, to = 1.0) progress: () -> Float, modifier: Modifier = Modifier)

Progress indicators express an unspecified wait time or display the duration of a process.

Link copied to clipboard
fun LinearProgressIndicator(progress: () -> Float, modifier: Modifier = Modifier)

Progress indicators express an unspecified wait time or display the duration of a process.

Link copied to clipboard

Progress indicators express an unspecified wait time or display the duration of a process.

Link copied to clipboard
fun Spinner(modifier: Modifier = Modifier, intent: SpinnerIntent = SpinnerIntent.Current, size: SpinnerSize = SpinnerDefaults.Size)

Spinners provide a visual clue that an action is processing awaiting a course of change or a result.