@k8ordo/ui

Skeleton

A placeholder for content that has not loaded yet.

Import

ts
import { Skeleton } from '@k8ordo/ui';

Usage

tsx
<Skeleton />

Shapes

tsx
<Skeleton shape="rect" />
<Skeleton shape="circle" />

Sizes

tsx
<Skeleton size="sm" />
<Skeleton size="md" />
<Skeleton size="lg" />

Animation

tsx
<Skeleton animate />
<Skeleton animate={false} />

Props

animate?
Type: boolean
Default: true
shape?
Type: 'rect'|'circle'
Default: 'rect'
size?
Type: 'sm'|'md'|'lg'
Default: 'md'
PropTypeDefault
animate?booleantrue
shape?'rect'|'circle''rect'
size?'sm'|'md'|'lg''md'

Inherited attributes (except the ones set internally): HTMLAttributes<HTMLDivElement>

k8ordo

React libraries that use Baseline features without holding back.