Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@squiz/xaccel-skeleton-loading

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@squiz/xaccel-skeleton-loading

A component that provides a skeleton loading.

  • 1.15.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

SkeletonLoading

Description

The SkeletonLoading component is a versatile and user-friendly UI element designed to enhance the user experience during data loading periods. It provides a visual placeholder that mimics the structure of the content being loaded, offering a seamless transition and reducing perceived loading times.

Properties

PropertyProperty descriptionProperty typeDefault valueIs required
widthwidthstring or number100%
heightheightstring or number1rem
borderRadiusThe border radius stylestring or number0.25rem
styleAdditional styles to add to elementCSSProperties
classNameOverwrite ClassNameclassNameOverride

Usage

Default

import { SkeletonLoading } from '@squiz/xaccel-skeleton-loading';

<SkeletonLoading />

Custom size

import { SkeletonLoading } from '@squiz/xaccel-skeleton-loading';

<SkeletonLoading  width={150} height={30} />

Circle

import { SkeletonLoading } from '@squiz/xaccel-skeleton-loading';

<SkeletonLoading type='circle' width={50} height={50} />

Additional styles

import { SkeletonLoading } from '@squiz/xaccel-skeleton-loading';

<SkeletonLoading style={{ borderRadius: 10 }}/>

Additional class

import { SkeletonLoading } from '@squiz/xaccel-skeleton-loading';

<SkeletonLoading
    className={{
        className: 'item',
        cssModule: styles,
        retainMissingModuleClasses: true,
    }} />

For more information about className please visit packages/utility/functions/src/generateClasses.js

FAQs

Package last updated on 10 Jul 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc