Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

gomojo-loading-screen

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gomojo-loading-screen

Go Mojo Loading Screen

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 14 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts