NG Kit

Spinner

A thin wrapper around the Angular Material progress spinner. Provides a simple way to customize size, color, and stroke width, with an indeterminate loading indicator without requiring Bootstrap.

Overview

Import SpinnerComponent and drop the <spinner> element into any standalone component. By default The component always renders an indeterminate Angular Material progress spinner. Tune it with diameter, color, and strokeWidth.

  • Tree-shakable: only the imported features are included in your bundle.
  • Fully configurable for size, color, and stroke width.
  • Follows Angular Material and WCAG accessibility best practices with semantic markup and ARIA attributes.

API

Selectors

spinner, lib-spinner

Inputs

NameTypeDefaultDescription
bootstrapSpinnerbooleantrueDeprecated compatibility input; has no effect
diameternumber50Diameter of the Material spinner (px)
colorThemePalette'primary'Color of the Material spinner ('primary', 'accent', 'warn')
strokeWidthnumber5Stroke width of the Material spinner

The default changed from a Bootstrap spinner to an Angular Material spinner. Existing [bootstrapSpinner] bindings still compile but do not change the result.