Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Select
Custom Inputs
Components
Navigation
Components
69
Micro Charts
Libraries
Kanban Board
Image Designer
Video Player
Visual Builder
Content Editor
Data View
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Purchase

Block Loader

The Block Loader component shows a loading overlay for one specific part of the interface. Use it when a card, table, form, dialog, or other local section is busy while data loads, refreshes, or saves.

Use it for:
  • Local loading: Block only the section that is fetching or processing data.
  • Saving states: Keep a form or dialog visible while preventing interaction during save.
  • Clear feedback: Show a spinner with an optional short message inside the affected area.
  • Container positioning: Use ngsBlockLoaderContainer on the parent container when the loader should cover that block.

Do not use Block Loader for full-page route loading, skeleton placeholders, inline spinners, progress percentages, or non-blocking background work.

PropTypeDefault
loading
Show/Hide block loader
booleanfalse
spinnerDiameter
Set spinner diameter
number48
spinnerStrokeWidth
Set spinner stroke width
number4

Directives

DirectiveDescription
ngsBlockLoaderContainer
Directive to mark a container for block loader positioning (sets relative position)