Pixel Loader

Pixel Loader

A compact square-pixel loader with configurable frame size, grid dimensions, motion pattern and optional bloom.

Installation

$pnpm dlx shadcn@latest add https://spark.surge.studio/r/pixel-loader.json

Preview

Variant
Size
16
Grid
6
Bloom

Props

PropTypeDescription
variant'wave' | 'pulse' | 'wipe' | 'orbit'Chooses the pixel animation pattern rendered by the loader.
sizenumber | 'sm' | 'md' | 'lg'Sets the rendered loader size. Numeric values are treated as pixels.
gridSizenumberSets the pixel grid dimensions. Values are clamped between 3 and 9.
bloombooleanAdds a soft glow around each active pixel.
classNamestringApplies classes to the wrapper. Use text color utilities to set the pixel color.