complex

Spinner

A loading spinner indicator.

Preview

A preview of the Spinner component with interactive controls.

Preview Code
Interactive

Installation

Add the Spinner component to your project.

Bash
ng g @ng-cn/core:c spinner

Usage

Import and use the Spinner component in your Angular application.

Template TypeScript
template.html
<Spinner />

Examples

Explore different variations and use cases for the Spinner component.

Basic

Preview Code
Interactive

Sizes

Preview Code
Interactive

API Reference

Props
Prop Type Default Description
size 'sm' | 'md' | 'lg' 'md' The size of the spinner.
class string Additional CSS classes to apply.