Skip to content

forinda/react-fullscreen-loader

Repository files navigation

react-fullscreen-loader

A functional component based react component for full page loading

CI status

PR

CI

Installation

npm i react-fullscreen-loader # npm
yarn add react-fullscreen-loader # yarn
pnpm i react-fullscreen-loader # pnpm

Guide

import React from 'react'
import { LoaderComponent } from 'react-fullscreen-loader'
import 'react-fullscreen-loader/src/loader.css'


const App()=>{
  return <LoaderComponent loading/>
}

That's it

Props

backgroundColor - String of color you want the background to be loadingColor - Color of the loader

import React from 'react'
import { LoaderComponent } from 'react-fullscreen-loader'
import 'react-fullscreen-loader/src/loader.css'


const App()=>{
  return <LoaderComponent loading backgroundColor="red" loadingColor="yellow"/>
}