-
Notifications
You must be signed in to change notification settings - Fork 2
Loading
brandonk1234 edited this page Oct 4, 2016
·
1 revision
The loading ui element is used to display a spinning animation to let the user know their content is still waiting to be loaded.
The props needed for this component are listed and explained below:
-
text
- This prop must be astring
. -
className
- This prop must be astring
. -
hasDataLoaded
- This prop must be aboolean
. If this is true, the children of this component will be rendered, if false the spinning loading animation will be displayed.
<Loading text="Loading" className="login" hasDataLoaded={true}>
<div>
DATA HAS LOADED
</div>
</Loading>