šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

next-awesome-skeleton-loader

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-awesome-skeleton-loader

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

1.3.4
latest
Source
npm
Version published
Weekly downloads
3
-80%
Maintainers
1
Weekly downloads
Ā 
Created
Source

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

Example's next-awesome-skeleton-loader

Loader Module for [webpack](https://webpack.js.org/) to execute your custom procedure. Its works as your's custom 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

Keywords

react

FAQs

Package last updated on 17 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts