Skip to content

Progress spinner

Overview

Progress Spinner is used to indicate something is in progress and is based on the Angular Material progress spinner component.

Examples

import mesop as me


@me.page(
  security_policy=me.SecurityPolicy(
    allowed_iframe_parents=["https://google.github.io"]
  ),
  path="/progress_spinner",
)
def app():
  me.progress_spinner()

API

progress_spinner

Creates a Progress spinner component.

PARAMETER DESCRIPTION
key

The component key.

TYPE: str | None DEFAULT: None

color

Theme palette color of the progress spinner.

TYPE: Literal['primary', 'accent', 'warn'] | None DEFAULT: None

diameter

The diameter of the progress spinner (will set width and height of svg).

TYPE: float DEFAULT: 48

stroke_width

Stroke width of the progress spinner.

TYPE: float DEFAULT: 4