🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@jmind.systems/react-status-controller

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jmind.systems/react-status-controller

Usage example

npmnpm
Version
0.0.9
Version published
Weekly downloads
23
1050%
Maintainers
4
Weekly downloads
 
Created
Source

React-status-controller

Usage example

codesandbox

Docs

  • statuses - statuses array from redux state
  • error - function. Use to display error from redux state
  • reduxStatuses - you can pass your statuses to StatusController.
    Default -
    {
         none: 'none',
         loading: 'loading',
         error: 'error',
         success: 'success'
    }
    
    Your reduxStatuses should be an object with the same keys.
  • loaderSettings - object. Use this parameter to set your custom styles to the loader (default)
    loaderSettings have following keys:
    • size - loader size;
    • color - loader color;
    • styles - loader wrapper styles.
      Default
       display: 'flex',
       justifyContent: 'center',
       alignItems: 'center',
       width: '100%',
       height: '100%',
      
  • Loader - Use this parameter to set your custom Loader component Example:
     <StatusController Loader={() => <span>Loading...</span>}>
    
     </StatusController>
    

Keywords

react

FAQs

Package last updated on 11 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