@kiwicom/orbit-components
Version:
<div align="center"> <a href="https://orbit.kiwi" target="_blank"> <img alt="orbit-components" src="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components.png" srcset="https://orbit.kiwi/wp-content/uploads/2018/08/orbit-components@2x.png 2x"
33 lines (27 loc) • 1.25 kB
Markdown
# Loading
To implement Loading component into your project you'll need to add the import:
```jsx
import Loading from "@kiwicom/orbit-components/lib/Loading";
```
After adding import into your project you can use it simply like:
```jsx
<Loading />
```
## Props
Table below contains all types of the props available for icons in general.
| Name | Type | Default | Description |
| :------------ | :-------------- | :-------------- | :------------------------------- |
| children | `React.Node` | | The content of the Loading. [See Functional specs](#functional-specs)
| dataTest | `string` | | Optional prop for testing purposes.
| loading | `boolean` | `false` | If `true`, the Loading will be displayed.
| **type** | [`enum`](#enum) | | The type of the Loading.
| text | `string` | | The text of the Loading.
### enum
| color |
| :--------------- |
| `"buttonLoader"` |
| `"searchLoader"` |
| `"boxLoader"` |
| `"pageLoader"` |
## Functional specs
* Loading which doesn't have a children is always shown, even though that `loading` prop is set to `false`.