Introduction
Welcome to React UI Loader, a powerful and versatile npm package crafted with TypeScript, React, and CSS to simplify the integration of customisable lightweight shimmers and loaders into your web applications. In the dynamic world of web development, creating loaders and shimmers that seamlessly integrate with your app's design can be a time-consuming task. React UI Loader comes to the rescue, offering a comprehensive solution that streamlines the process of adding loading indicators, making your application not only visually appealing but also providing a smoother user experience.
Motivation
The motive behind React UI Loader is to empower developers by eliminating the need for building loaders and shimmers from scratch. We understand the importance of maintaining a polished and responsive user interface, and that's why we have created a package that allows you to effortlessly incorporate customisable loading elements into your React applications. With React UI Loader, you can focus more on building the core functionality of your app, while we take care of the visual aspects, providing a polished and professional touch.

Key Features:

1. Customisation: React UI Loader offers a wide range of customization options, allowing you to tailor the appearance of loaders and shimmers to match your app's design seamlessly. Adjust colors, sizes, and animations with ease.

2. Lightweight: We believe in keeping things simple and efficient. React UI Loader is designed to be lightweight, ensuring that your application's performance remains unaffected while still delivering a visually engaging loading experience.

3. Versatility: Whether you need a shimmer effect for content placeholders or a loader for asynchronous operations, React UI Loader has got you covered. With multiple pre-built forms and styles, you can choose the loading indicator that suits your specific use case.

4. Ease of Integration: Integration is a breeze with React UI Loader. Thanks to TypeScript and React, you benefit from a type-safe and component-based approach, making the implementation process smooth and intuitive.

By choosing React UI Loader, you not only save valuable development time but also enhance the overall user experience of your application. Say goodbye to the hassle of creating loaders and shimmers manually, and let React UI Loader take your React app's visual appeal to the next level.
Installation
Lorem ipsum dolor sit amet consectetur adipisicing elit. Cupiditate non ipsam, placeat neque eligendi tempore rem maxime dolor laborum ratione molestiae dolore explicabo animi culpa enim beatae totam iste. Minus!

npm install react-ui-loader
or
pnpm add react-ui-loader
or
yarn add react-ui-loader
Loader
Loader helps you add loader while you carry out async processess, it is responsive and easily customisable. We can use it by importing it at top of our component and passing the required prop show.

1 2 3 4 5 6 7 import TextLoader from "react-ui-loader" export default function MyApp() { return ( <TextLoader show={true} /> ) }
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 we 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
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
childrenReactNodenonullTakes ReactNode as input to determine the logo in the loader
rowbooleannotrueArrange loader icon, loader text and loader image in a row or column
Shimmer
Shimmer helps you add shimeer while you carry out async processess, it is responsive and easily customisable. We can use it by importing it in our component and passing the required prop show.

1 2 3 4 5 6 7 import ProfileShimmer from "react-ui-loader" export default function MyApp() { return ( <ProfileShimmer show={true} /> ) }
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
profileDimensionstringno200pxDetermines the size of profile picure
coverHeightstringno25%Determines the height of cover picure
coverWidthstringno100%Determines the width 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
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

2024 React UI Loader