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

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)