1.15.2 • Published 11 months ago

@squiz/xaccel-skeleton-loading v1.15.2

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

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

1.15.2

11 months ago

1.15.1-beta.4

12 months ago

1.15.1-beta.3

1 year ago

1.14.0-alpha.4

1 year ago

1.15.1-beta.2

1 year ago

1.14.0-alpha.3

1 year ago

1.15.1-beta.1

1 year ago

1.14.0-alpha.2

1 year ago