Skeleton

Skeleton indicates that the things are really happening. It is used to create a perception of reduced waiting time. Skeleton is good to when:

  • The component contains good amount of information, such as List or Card
  • There’s more than 1 element loading at the same time that requires an indicator
  • Not to use for a long-running process, e.g. importing data etc
TypeResource
DesignFigma
WebWeb Storybook
CodeGitlab

Usage

import { Skeleton } from 'bio-bind-ui';
<Skeleton
  height={50}
  id='skeleton'
  mode='light'
  radius='none'
  shape='square'
  style={{}}
  width={350}
/>

Examples

Radius (Optional)

Use radius for change the corner radius size of skeleton component: none, xs, sm, md, lg, xl

none

xs

sm

md

lg

xl


Mode (Optional)

Use mode for change color mode of skeleton component: light or dark



Props

PropsRequiredDefaultTypeDescription
shapefalsesquaresquare, circleSpecifies the shape of the skeleton (e.g., square or circle).
widthfalse100numberThe width of the skeleton component.
heightfalse100numberThe height of the skeleton component.
radiusfalsemdnone, xs, sm, md, lg, xlThe border radius of the skeleton (e.g., none, small, medium, large, extra-large).
modefalselightdark, lightThe mode of the skeleton (e.g., dark or light).
stylefalseReact.CSSPropertiesThe custom styles for the skeleton component.
idfalse-stringThe unique identifier for the skeleton component, useful for accessibility or targeting specific elements.
BIND © Biofarma Innovate Next-level Design .