A loader that wraps an element and covers it with a loading spinner, decreasing visibility of the content and
blocking interactions.
It requires a single child element, whose ref will provide a DOM element.
It has 3 modes of operation:
before - will add the loader as ::before element of the ref node
after - will add the loader as ::after element of the ref node
cover (default) - will add itself to the parent of the ref node, setting position: relative to it
Before/after modes will cover the background with semi-transparent white.
Over mode will decrease the opacity of the wrapped element.
A loader that wraps an element and covers it with a loading spinner, decreasing visibility of the content and blocking interactions. It requires a single child element, whose ref will provide a DOM element.
It has 3 modes of operation:
Before/after modes will cover the background with semi-transparent white. Over mode will decrease the opacity of the wrapped element.