Skip to main content

Skeleton

Skeletons can be used as a preview for your content before data gets loaded.

Width and Height

Change the dimensions of the skeleton using the width and height props.

import { Skeleton } from 'chic-ui';

<Skeleton />
<Skeleton width={80} height={60} />

Shapes

Get skeletons of any shape by changing the borderRadius prop.

<Skeleton borderRadius='50%' />
<Skeleton borderRadius='30%' />

API

import { Skeleton } from 'chic-ui';
NameTypeDefaultDescription
widthnumber100Width of the skeleton
heightnumber100Height of the skeleton
borderRadiusstring'none'Sets the border radius for the Skeleton
classNamestringProvide external classnames to the component
styleReact.CSSPropertiesOverride default styling of the component