Twitter0

Spinner

Shows a Loading spinner to indicate that the app is busy or the page is still loading.

Processing payment...
$100.00

About

Spinner is built on top of ng-icons by @ashley-hunter .

Installation

npx nx g @spartan-ng/cli:ui spinner

Usage

import { HlmSpinnerImports } from '@spartan-ng/helm/spinner';
<hlm-spinner class="text-base md:text-lg" />

Examples

Custom Icon

You can replace the default spinner icon with any other icon by editing the HlmSpinner component.

If you only need to change the icon once, set the icon input to your desired icon icon="lucideLoader" and add provideIcons({ lucideLoader }) to load your custom icon.

Size

Color

Button

Badge

Syncing Updating Processing

Input Group

Input Group can have spinners inside HlmInputGroupAddon

Validating...

Empty

Processing your request
Please wait while we process your request. Do not refresh the page.

Item

Use the spinner inside HlmItemMedia to indicate a loading state.

Downloading...

129 MB / 1000 MB

Helm API

HlmSpinner

Selector: hlm-spinner

Inputs

PropTypeDefaultDescription
icon string lucideLoader2 The name of the icon to be used as the spinner. Use provideIcons({ ... }) to register custom icons.
aria-label string Loading Aria label for the spinner for accessibility.
class ClassValue --
Switch Skeleton