Loading

Loading

import Loading from "@kiwicom/orbit-components/lib/Loading";
<Loading title="Loading" />

Props

NameTypeDefaultDescription
childrenReact.NodeThe content that is shown when loading is not true.
dataTeststringOptional prop for testing purposes.
idstringSet id for Loading.
loadingbooleanfalseIf true, the Loading will be displayed. Loading which doesn’t have children is always shown, even if loading prop is set to false.
typeenum"pageLoader"The type of the Loading.
customSizenumberAllows you to define custom size for circle loader.
asComponentstring \| React.Element"div"The component used for the root node.
textTranslationText to be displayed below the loader image. Cannot be used with title or ariaHidden. See Accessibility tab.
titlestringProvides an accessible name for the loading indicator that is announced by screen readers. Cannot be used with text or ariaHidden. See Accessibility tab.
ariaHiddenbooleanIf true, hides the loading indicator from screen readers. Cannot be used with text or title. See Accessibility tab.

enum

type
"buttonLoader"
"searchLoader"
"boxLoader"
"pageLoader"
"inlineLoader"