Skip to content

Instantly share code, notes, and snippets.

@skflowne
Created August 15, 2020 08:37
Show Gist options
  • Save skflowne/1ec3c72c8c848deaa8c074bf9e4f1536 to your computer and use it in GitHub Desktop.
Save skflowne/1ec3c72c8c848deaa8c074bf9e4f1536 to your computer and use it in GitHub Desktop.
import React from "react"
import styled from "styled-components"
import Loader from "react-loader-spinner"
import "react-loader-spinner/dist/loader/css/react-spinner-loader.css"
const StyledLoadingIndicator = styled("div")`
position: absolute;
top: 1rem;
left: 50%;
transform: translateX(-50%);
z-index: 50;
`
const LoadingIndicator = () => {
return (
<StyledLoadingIndicator>
<Loader type="Oval" color="#667EEA" height={40} width={40} />
</StyledLoadingIndicator>
)
}
export default LoadingIndicator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment