1.0.9 • Published 2 years ago

@ueep/smart-loading v1.0.9

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

NPM version NPM downloads

See Live Demo:

https://gxxbmv.csb.app/

Playground

https://codesandbox.io/s/ueep-smart-loader-gxxbmv

Description

This is an awesome package to make your dream project more attractive and interactive. You can use various animated Icons and random Quotes to as an interactive loader to make your website really smart. It's always nice to have flexibilities and options that's why we try our best to give you that. You can use this loader as you want, you can use the icon only and for that you don't need to pass the quote property. it will make the background transparent if you don't pass the background property. if you set quote property as only an empty object then it will show some awesome, nice quote randomly.

Install

npm i @ueep/smart-loading

Usage

@ueep/smart-loading is an awesome package to make your dream project more attractive and interactive. You can use various animated Icons and random Quotes to as an interactive loader to make your website really smart.

import {UeepLoader} from '@ueep/smart-loading';

function App() {
  const [loading, setLoading] = React.useState(true);
  return (
    ........
      {loading && <UeepLoader
        icon={'loading'}
        background={'white'}
        quote={{
          // you can also pass your own quote or text here as a parameter named "text"
          // you can also pass author here as a parameter named "author"
          font: 'cursive', // use any font-family
          quotation: true // this option is to show the quotation signs
        }}
      />}
    .......
  );
}

export default App;

N.B: You can use a lot more options to customize the Loader as you want, please see the available options below.

Available options

It's always nice to have flexibilities and options that's why we try our best to give you that. You can use this loader as you want, you can use the icon only and for that you don't need to pass the quote property. it will make the background transparent if you don't pass the background property. if you set quote property as only an empty object {} then it will show some awesome, nice quote randomly.

PropsTypeDefaultDetails
iconString or JSON URLpaperPlaneThis is the name of the icon, you will get all the names below. You can also pass the Lottie file JSON URL
quoteObject{quotation: true}
backgroundString#FFFFFF
widthString (px, % anything)30%
heightString (px, % anything)auto
borderRadiusString (px, % anything)20px
iconWidthNumber100
iconHeightNumber100
classNameString
positionStringcenter
overlayColorString#000000
overlayOpacityString0.45

Positions

You can always set the position of the loader on the screen by passing the position property though it is center by default if you don't pass. Below you can see some positional values.

  • top-left
  • bottom-left
  • top-right
  • bottom-right
  • center (default)

Available icons

  • random (to show an icon randomly)
  • blueCircle
  • bouncingBall
  • circleSpinner
  • dancingPig
  • circleToShape
  • fourDot
  • fourBox
  • loading
  • loadingSpinner
  • nature
  • owl
  • paperPlane (default)
  • threeDot
  • waterDrop
  • thinking

Screenshots

License
MIT© UEEP Inc
1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago