Skeleton

Basic usage

<div class="flex flex-col gap-4">
  <div class="flex items-center gap-4">
    <div class="flex-shrink-0">
      <CSkeleton />
    </div>
    <div class="flex flex-col gap-2 flex-grow">
      <CSkeleton height="12px" shape="square" />
      <CSkeleton height="12px" shape="square" />
    </div>
  </div>
  <CSkeleton shape="square" borderRadius="0" height="200px" />
  <div class="flex justify-end gap-4">
    <CSkeleton shape="square" width="100px" height="42px" />
    <CSkeleton shape="square" width="100px" height="42px" />
  </div>
</div>
svelte
Click fold/expand code

CSkeleton Props

  • shape
    EShape
    default: circle

    The shape of skeleton

  • width
    string
    default: undefined

    The width of the skeleton

  • height
    string
    default: undefined

    The height of the skeleton

  • borderRadius
    string
    default: undefined

    The border radius of the skeleton

CSkeleton Events

No data

CSkeleton Slots

No data

CSkeleton Exports

No data
Last update at: 2024/07/08 10:39:42