1.0.9 • Published 2 years ago

@mongez/react-components v1.0.9

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

React Components

This package has some good and quick react components to be used.

Installation

yarn add @mongez/react-components

Not Found Component

This component is used to show a not found page.

import { NotFound } from '@mongez/react-components';

<NotFound />

It will look like this:

Not Found Page

import { NotFound } from '@mongez/react-components';
import { setRouterConfigurations } from '@mongez/react-router';

setRouterConfigurations({
    notFound: {
        mode: 'render',
        component: NotFound,
    }
});

Now any route that is not found will case a render to the NotFound component.

Progress Bar

This component is used to show a progress bar.

import { Progress } from '@mongez/react-components';

<Progress />

If you want to control the progress, you can use the value prop.

import { Progress } from '@mongez/react-components';

<Progress loading value={50} />

It looks like this:

Progress Preview

To change progress height, you can use the height prop.

import { Progress } from '@mongez/react-components';

<Progress height={5} />

To Change the color of the progress bar, you can use the color prop.

import { Progress } from '@mongez/react-components';

<Progress loading value={50} color="red" />

To change the glow color, you can use the glowColor prop.

import { Progress } from '@mongez/react-components';

<Progress loading value={50} color="red" glowColor="red" />

To change the glow effect height you can use the glow prop.

import { Progress } from '@mongez/react-components';

<Progress loading value={50} color="red" glowColor="red" glow={25} />

Here is all available props:

PropTypeDefaultDescription
loadingbooleantrueIf true, the progress will be shown automatically.
valuenumberundefinedThe progress value to be controlled
heightnumber5The progress bar height
colorstring#21a6e9The progress bar color
glowColorstring#21a6e9The progress bar glow color
glownumber20The progress bar glow height
zIndexnumber1000The progress bar z-index
1.0.9

2 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago