Skip to content

LoadIndicator

Component | Source Code

extends Omit<ComponentPropsWithRef<“div”>, “children”>

Props Inheritance Hierarchy: Omit<ComponentPropsWithRef<“div”>, “children”>

Default load indicator. Resolves to spans inside a div container.

Note that this component has no visual appearance without styling. You must style this element for it to have any appearance. @jtjs/theme includes styles for this element if you don’t want to write your own, or want a base to work from.

If you’d like to style the component yourself, the structure of the resolved markup is:

.jtjs-loading-dots-container
.jtjs-loading-dot.jtjs-loading-dot-1
.jtjs-loading-dot.jtjs-loading-dot-2