---
title: "MazSpinner"
description: "MazSpinner is an animated loading indicator with the colors and sizes of the theme, to show that a content or an action is loading"
package: "maz-ui"
url: "https://maz-ui.com/components/maz-spinner"
---

# MazSpinner

> MazSpinner is an animated loading indicator with the colors and sizes of the theme, to show that a content or an action is loading

- Package: `maz-ui`
- Import: `import MazSpinner from 'maz-ui/components/MazSpinner'`
- Nuxt: auto-imported by `@maz-ui/nuxt`, no import needed in a Nuxt app
- Web: https://maz-ui.com/components/maz-spinner

## Basic usage

```vue
<script>
import MazSpinner from 'maz-ui/components/MazSpinner'
</script>

<template>
  <MazSpinner />
</template>
```

## Options

### Colors

Choose the color of the spinner

By default the color is `theme`

```vue
<MazSpinner color="primary" />

<MazSpinner color="secondary" />

<MazSpinner color="destructive" />

<MazSpinner color="warning" />

<MazSpinner color="success" />

<MazSpinner color="info" />

<MazSpinner color="accent" />

<MazSpinner color="contrast" />
```

### Sizes

Choose the size of the spinner

The default size is `2em`

```vue
<MazSpinner size="1em" />

<MazSpinner size="2em" />

<MazSpinner size="3em" />

<MazSpinner size="4em" />

<MazSpinner size="5em" />

<MazSpinner size="6em" />

<MazSpinner size="7em" />
```

## MazSpinner API

`import MazSpinner from 'maz-ui/components/MazSpinner'`

### Props

- `size` (`` `${number}rem` | `${number}px` | `${number}em` | `${number}vw` | `${number}vh` | `${number}vmin` | `${number}vmax` | `${number}%` | `${number}ch` | `${number}cm` | `${number}mm` | `${number}in` | `${number}ex` | `${number}pc` | `${number... ``, default: `"2em"`): The size of the spinner.
- `color` (`"primary" | "secondary" | "accent" | "info" | "success" | "warning" | "destructive" | "contrast" | "transparent"`, default: `"theme"`): The color of the spinner.
