Skip to main content
cngx-src documentation

withSpinnerTemplate

Functionui/feedback/loading

projects/ui/feedback/config/feedback-config.ts

Description#

Replace the built-in SVG spinner in CngxLoadingIndicator and CngxLoadingOverlay.

The component receives no inputs - it should be a self-contained spinner (e.g. a Lucide <loader-2> with CSS animation, or a Material <mat-spinner>).

provideFeedback(withSpinnerTemplate(MatProgressSpinner))

Signature#

withSpinnerTemplate(component: Type)

Parameters#

@paramcomponentType

Returns#

FeedbackFeature