1.3.4 • Published 2 months ago

next-awesome-skeleton-loader v1.3.4

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

Make Beautiful, simple and fully customizable animated next-awesome-skeleton-loader that implements a skeleton-like loader.

By default, next-awesome-skeleton-loader only outputs the input content. When you specify a function, next-awesome-skeleton-loader executes your function with the input content, and outputs its result. The function does something, it might edit the content, it might parse the content and indicate something in a console, it might do anything else.

next-awesome-skeleton-loader

A Next Awesome skeleton loader library for Next JS.

next-awesome-skeleton-loader is useful when:

Intall via NPM OR Yarn

npm i next-awesome-skeleton-loader
# or
yarn add next-awesome-skeleton-loader

Components

Row

Row Next Awesome Skeleton Loader which has wide range of use.

import { SekeltonLoader, SkeltonCircle } from 'next-awesome-skeleton-loader'
          <div className='container mx-auto'>
               <SekeltonLoader className='flex gap-10 my-20 w-full'>
                  <SkeltonCircle size={130} />
                  <SkeltonCircle size={130} />
                   <SkeltonCircle size={130} />
                   </SekeltonLoader>
        </div>

Demo

Click here Demo 👌

Basic Usage

The components you create should have loading states embeded in them.

import { SekeltonLoader, SkeltonCircle, SkeletonRectangle } from 'next-awesome-skeleton-loader'
    <div className='container mx-auto'>
        <SekeltonLoader className='flex gap-2 my-20 w-80'>
          <SkeltonCircle size={80} />
          <SkeletonRectangle lines={3} unEqualWidth gap={9} className='bg-gray-200 rounded-md' size={80} />
        </SekeltonLoader>
        <SekeltonLoader className='flex gap-2 my-20 w-80'>
          <SkeltonCircle size={80} />
          <SkeletonRectangle lines={3} unEqualWidth gap={9} className='bg-gray-200 rounded-md' size={0} />
        </SekeltonLoader>
        <SekeltonLoader className='w-80'>
          <SkeletonRectangle height={100} className='bg-gray-300 rounded-md' size={0} />
        </SekeltonLoader>
        <SekeltonLoader className='flex gap-10 my-20 w-full'>
          <SkeltonCircle size={130} />
          <SkeltonCircle size={130} />
          <SkeltonCircle size={130} />
        </SekeltonLoader>
        <SekeltonLoader>
        <SkeletonRectangle lines={6} unEqualWidth gap={9} className='bg-gray-200 rounded-md' size={40} />
        </SekeltonLoader>
      </div>

Props

PropTypeDefaultDescription
linesnumber3The unlimited lines of the element
sizenumber"80"The (max) size of your element
unEqualWidthnumber0.25Amount of unEqualWidth randomness
heightnumber100Amount of height randomness
gapnumber9gap of the element
widthnumber100width of the element
heightnumber100height of the element
classNamestring"bg-gray-300"the background color of the element

Licence

MIT

1.3.4

2 months ago

1.3.3

7 months ago

1.3.2

7 months ago

1.3.1

7 months ago

1.3.0

7 months ago

1.2.9

7 months ago

1.2.8

7 months ago

1.2.6

7 months ago

1.2.5

7 months ago

1.2.4

7 months ago

1.2.3

7 months ago

1.2.2

7 months ago

1.2.1

7 months ago

1.2.0

7 months ago

1.1.9

7 months ago

1.1.8

7 months ago

1.1.7

7 months ago

1.1.6

7 months ago

1.1.5

7 months ago

1.1.4

7 months ago

1.1.3

7 months ago

1.1.1

7 months ago

1.1.2

7 months ago

1.1.0

7 months ago

0.1.0

7 months ago