Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 571 Bytes

File metadata and controls

24 lines (18 loc) · 571 Bytes

bpk-component-skeleton

Backpack skeleton component.

Installation

Check the main Readme for a complete installation guide.

Usage

import BpkSkeleton, {
  SKELETON_TYPES,
  SIZE_TYPES, 
  IMAGE_SKELETON_STYLE 
} from '../../packages/bpk-component-skeleton';

export default () => (
  <div>
    <BpkSkeleton type={SKELETON_TYPES.image} size={{width: '7rem', height: '6rem'}} style={IMAGE_SKELETON_STYLE.rounded} />
    <BpkSkeleton type={SKELETON_TYPES.bodyText} size={SIZE_TYPES.small} />
  </div>
);