Skip to main content

Starwind UI v2.0 is now available! With new color-picker and more components

Spinner

Installation

Usage

Custom Size

Custom Color

In Button

API Reference

Spinner

An accessible loading spinner component with customizable styling.

PropTypeDefault
classstring-
<Spinner class="size-6 text-primary" />

Additional Notes:

  • Use Tailwind classes to control size with size-* utilities
  • Use Tailwind color classes to change the spinner color

Changelog

v1.0.2

  • Refactor tailwind variants functions into separate variants.ts file

v1.0.0

  • Initial release with starwind v1.10.0