40+ landing page components for ReactBrowse now

Components

Spinner

An animated loading indicator to communicate that content is being fetched or processed.

Sizes

sm
md
lg
xl

Colors

Primary
Success
Warning
Danger
Secondary

With Label

Loading data...
Saving changes...

Installation

npm install @trinkui/react

Import

import { Spinner } from "@trinkui/react";

Usage

<Spinner size="md" color="primary" />
<Spinner size="lg" color="success" />
<Spinner size="sm" color="danger" label="Loading..." />

Props

PropTypeDefaultDescription
size"sm" | "md" | "lg" | "xl""md"Size of the spinner
color"primary" | "secondary" | "success" | "warning" | "danger""primary"Color of the spinner
labelstringText shown next to the spinner
classNamestringAdditional CSS classes

Accessibility

  • Uses role="status" for screen reader announcement
  • aria-label describes the loading state
  • Animation respects prefers-reduced-motion