A small circular loading indicator.
You should have the chayns-components
package installed. If that is not the
case already, run
yarn add chayns-components
or
npm i chayns-components
After the chayns-components
package is installed, you can import the component
and use it with React:
import React from 'react'
import { SmallWaitCursor } from 'chayns-components';
// ...
<SmallWaitCursor {...} />
The SmallWaitCursor
-component takes the following props:
Name | Type | Default | Required |
---|---|---|---|
show | boolean |
false |
|
style | { [key: string]: number | string } |
||
showBackground | boolean |
true |
|
inline | boolean |
false |
|
className | string |
show?: boolean
Wether the wait cursor should be shown.
style?: { [key: string]: number | string }
A React style object that will be applied to the wrapper.
showBackground?: boolean
Wether a background should be shown behind the spinner.
inline?: boolean
Wether the spinner should be rendered with display: inline-block;
. This does
not work when showBackground
is true
className?: string
A classname sring that will be applied to the container element of the spinner.