Loader

Props

NameTypeDescription
childrenReact.ReactNodePass child elements if you want to cover them with a loader
isGlobalbooleanGlobal mode
isLoadingbooleanMake it work
onClick...Click handler
theme...Theme
_[className]
[x: string]: unknown
E.g.: _w-48 adds a css class w-48 to the component's outer wrapper.

() => (<>
    <L.Loader isLoading _w-48 />
    <L.Loader>
      hi there
    </L.Loader>
  </>
);

Customization props

NameType
iconRenderCustomRender<LoaderProps, {}, {}>...