Back to components

Spinner

zyra-spinner
FeedbackZyraSpinner

Component preview

Explore the available states and the real library behavior for this component.

Live previewZyraSpinner

zyra-spinner Playground

4 sizes4 colors

Loading spinner with size, color and accessibility label support

Controls
size
color
label (aria)
Usage

<zyra-spinner />

size - xs / sm / md / lg

color - accent / accent-2 / white / current

label - screen reader text

Live Preview mdaccent
Loading...
Generated Code
<zyra-spinner size="md" color="accent"
  label="Loading..."
/>
Sizes xs to lg
Loading…xs
Loading…sm
Loading…md
Loading…lg
Colors 4 variants
Loading…accentprimary teal
Loading…accent-2secondary blue
Loading…whitefor dark backgrounds
Loading…currentinherits currentColor
Real World - Button Loading States click to simulate
Save changes
Upload file
Delete (shows error)
Real World - Inline Usage
Loading data table
Loading…Fetching records...
Async validator in input
Checking usernameLoading…
Full page overlay
Loading page...
Usage code
zyra-spinner
import { Component } from '@angular/core';
import { ZyraSpinner } from 'zyra-ng-ui';

@Component({
  selector: 'app-demo-spinner',
  standalone: true,
  imports: [ZyraSpinner],
  template: `
    <zyra-spinner
      size="md"
      color="accent"
      label="Loading dashboard"
    />
  `,
})
export class DemoSpinnerComponent {}
Useful for async statesEasy to drop into buttonsKeeps loading feedback visible