Skip to content

Skeleton

Open in Storybook

Interactive Demo

Loading

Usage

vue
<script setup>
import { Skeleton } from '@yellowcard/b2b-design-system';
</script>

<template>
  <Skeleton />
</template>

API Reference

Props

PropTypeDefaultDescription
widthstring | number'100%'Width of the skeleton. Numbers are treated as px; strings pass through (e.g., '50%', '2rem').
heightstring | number'1em'Height of the skeleton. Numbers are treated as px; strings pass through.
borderRadiusstring | number'4px'Border radius. Numbers are treated as px; strings pass through (use '50%' for circles).
animatedbooleantrueWhether the shimmer animation is enabled.
ariaLabelstring'Loading'Accessible label announced by screen readers.