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
 
| Type | Resource | 
|---|---|
| Design | Figma | 
| Web | Web Storybook | 
| Code | Gitlab | 
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
| Props | Required | Default | Type | Description | 
|---|---|---|---|---|
| shape | false | square | square, circle | Specifies the shape of the skeleton (e.g., square or circle). | 
| width | false | 100 | number | The width of the skeleton component. | 
| height | false | 100 | number | The height of the skeleton component. | 
| radius | false | md | none, xs, sm, md, lg, xl | The border radius of the skeleton (e.g., none, small, medium, large, extra-large). | 
| mode | false | light | dark, light | The mode of the skeleton (e.g., dark or light). | 
| style | false | React.CSSProperties | The custom styles for the skeleton component. | |
| id | false | - | string | The unique identifier for the skeleton component, useful for accessibility or targeting specific elements. |