1.1.0 • Published 1 year ago

react-ui-loader v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-ui-loader

Loader and Shimmer developed with customizable UI options to add different elemnets in each.

demo: https://react-ui-loader-demo.vercel.app/

Installation

npm i react-ui-loader

or

yarn add react-ui-loader

LOADER demo

import { TextLoader } from "react-ui-loader";

const MyComponents = ()=> {
    return (
        <TextLoader show={true} />
    )
}

export default MyComponents

Loader

Props

Prop NameDataTypeRequiredDefault ValueDescription
showbooleanyestrueDetermines whether to hide or show loader
bgColorstringnoblackTakes hex values of color as input to determine background color of loading screen
widthValuestring or numberno100vwDetermines the width of loading screen
heightValuestring or numberno100vhDetermines the height of loading screen
zIndexingnumberno1Determines the z-index for loading screen
backgroundOpacitynumberno1Determines the opacity of background in Loader
justifycontentstringnocenterDetermines the horizontal position of loader icon, loader text and loader image according to flex properties
alignitemsstringnocenterDetermines the vertical position of loader icon, loader text and loader image according to flex properties
loaderTextstringnoLoading...Takes input as the text you want to display on loading screen
textColorstringnowhiteTakes input as the color of the text you want to display on loading screen
fontSizeValuestringno18pxTakes input as the font size of the text you want to display on loading screen
fontWeightValuenumberno400Takes input as the font weight of the text you want to display on loading screen
loaderColorstringnowhiteTakes string as input to determine the color of loader
loaderbooleannofalseDetermines wheteher to show the loader or not
loaderStylestringnoCircularDetermines the style of the loader
loaderSizestringnomediumDetermines the size of the loader
textAnimatebooleannofalseDetermines if we want to give an animation to the loading text
childrenReactNodenonullTakes ReactNode as input to determine the logo in the loader
logobooleannofalseDetermines if we want to show the logo or not
logoHeightstringno48pxDetermines the height of logo in loading screen
logoWidthstringno48pxDetermines the width of logo in loading screen
logoAnimatebooleannofalseDetermines if we want to give an animation to the logo
rowbooleannotrueArrange loader icon, loader text and loader image in a row or column

Shimmer demo

import { ProfileShimmer } from "react-ui-loader";

const MyComponents = ()=> {
    return (
        <ProfileShimmer show={true} />
    )
}

export default MyComponents

Shimmer

Props

Prop NameDataTypeRequiredDefault ValueDescription
showbooleanyestrueDetermines whether to hide or show shimmer
profilePositionCenterbooleannofalseDetermines if profile picture must be in center or not
profileShapestringnocircleDetermines the shape of profile picure
coverHeightstringno25%Determines the height of cover picure
showCoverbooleannotrueDetermines the whether to hide or display the cover picure
showProfilebooleannotrueDetermines the whether to hide or display the profile picure
showLinesbooleannotrueDetermines the whether to hide or display the lines
numberOfLinesnumberno10Determines the total number of lines to display
numberOfCardsnumberno10Determines the total number of Cards to display
showCardsbooleannotrueDetermines the whether to hide or display the cards
cardHeightstringno420pxDetermines the height of cards
cardWidthstringno420pxDetermines the width of cards
backgroundColorstringnowhiteDetermines the color of background
colorstringnograyDetermines the color of components
shimmerColorstringnowhiteDetermines the color of shimmer effect
profileDimensionstringno200pxDetermines the size of profile picure
coverWidthstringno100%Determines the width of cover picure
lineHeightstringno10pxDetermines the height of lines in shimmer
lineWidthstringno98%Determines the width of lines in shimmer
shimmerHeightstringnofit-contentDetermines the height of shimmer component
shimmerWidthstringno100%Determines the width of shimmer component
1.1.0

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago