Import
Props
The diameter of the loader spinner. Must be specified with
px unit (e.g., "50px", "100px").The border width automatically adjusts based on size:- Size ≤ 16px: border width = size/6
- Size ≤ 32px: border width = size/8
- Size > 32px: border width = size/12
Usage Examples
Default Loader
Custom Sizes
Loading Overlay
Centered in Container
Styling Notes
- The loader creates a semi-transparent overlay (
opacity: 0.8) with absolute positioning - Background color is set to
--color-background-tertiary-default - The spinner uses
--color-border-brand-defaultfor the animated border - The loader spans the full width and height of its positioned parent
- Animation is a smooth cubic-bezier rotation (1.4s duration)