Spinner

A centered loading indicator that fills the available space by default.

Installation

npx alixan-ui-nuxt add spinner

Usage

<template>
  <Spinner />
</template>

Size

<template>
  <div class="w-full grid grid-cols-3 justify-around">
    <Spinner size="sm" />
    <Spinner />
    <Spinner size="lg" />
  </div>
</template>

API Reference

PropTypeDefaultDescription
size'sm' | 'md' | 'lg''md'Controls spinner diameter and border width.