1.0.4 • Published 4 years ago

gomojo-loading-screen v1.0.4

Weekly downloads
59
License
MIT
Repository
github
Last release
4 years ago

gomojo-loading-screen

Go Mojo Loading Screen

NPM JavaScript Style Guide

Install

npm install --save gomojo-loading-screen

Usage

import React, { Component } from 'react'

import LoadingScreen from 'gomojo-loading-screen'
import 'gomojo-loading-screen/dist/index.css'

<LoadingScreen
	isVisible={true}
	message="Your message"
	bgColor="#000"
	bgImage="../path-to-your-background-image"
	color="#FFF"
	fontFamily="HVD"
	fontSize="2rem"
	logo="../path-to-you-logo"
	spinnerColor="#000"
	landscapeGame={true}
/>

Options

RequiredParameterTypeExampleDescription
isVisiblebooleantrueDetermine if the component is load or not
messagestringChargement ...Loading message
bgColorstring#FFFSet the background color
overlayOpacitystring0.35Set the overlay opacity
bgMessagestringrgba(0, 0, 0, 0.2)Set the message background color
bgImagestring../path-to-your-background-imageSet the background image
colorstring#000Set the descritpion's color
fontFamilystringHVDSet the font family
fontSizestring2remSet the font size
logostring../path-to-your-logoSet the logo
spinnerColorstring#FFFSet the spinner color
landscapeGamebooltrueDetermine if a rotation is necessary on mobile device

License

MIT © bsisic