3.0.2 • Published 2 years ago

material-state-component v3.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

material-state-component

This component is based on material-ui library. It helps to represent state flows.

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save material-state-component

Usage

Demo

import React from 'react'
import CachedIcon from '@mui/icons-material/Cached';
import CameraIcon from '@mui/icons-material/Camera';
import CodeIcon from '@mui/icons-material/Code';
import CoronavirusIcon from '@mui/icons-material/Coronavirus';
import DialpadIcon from '@mui/icons-material/Dialpad';
import FingerprintIcon from '@mui/icons-material/Fingerprint';
import GraphicEqIcon from '@mui/icons-material/GraphicEq';
import StateComponent from 'material-state-component';

const states = [
  {
    label: 'First',
    color: '#562C2C',
    icon: <CachedIcon />,
  },
  {
    label: 'Second',
    color: '#F2542D',
    icon: <CameraIcon />,
  },
  {
    label: 'Third',
    color: '#ee9b00',
    icon: <CodeIcon />,
  },
  {
    label: 'Fourth',
    color: '#f5aba2',
    icon: <CoronavirusIcon />,
  },
  {
    label: 'Fifth',
    color: '#0E9594',
    icon: <DialpadIcon />,
  },
  {
    label: 'Sixth',
    color: '#127475',
    icon: <FingerprintIcon />,
  },
  {
    label: 'Seventh',
    color: '#001219',
    icon: <GraphicEqIcon />,
  },
];

const App = () => {
  return (
    <div style={{margin: '10rem'}}>
      <StateComponent currentState={'Seventh'} states={states}/>
    </div>
  );
};

export default App;

states

License

MIT © mlaina

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago