Morphing Shape Loader

A loading indicator that continuously morphs between configurable SVG shapes via real path interpolation. The transition is a genuine geometric morph — never a fade out / in.

Loading

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/morphing-shape-loader

API Reference

PropTypeDefaultDescription
shapesShapeKind[]['circle','square','triangle','circle']Ordered list of shapes to cycle through
durationnumber1.6Morph duration per shape change in seconds
holdDurationnumber0.4Hold duration at each shape in seconds
loopbooleantrueLoop the shape sequence
sizenumber96Loader size in pixels (square)
colorstring'#FAFAFA'Stroke or fill color
filledbooleanfalseFilled variant instead of stroke