Skip to content

Skeleton ​

Indica carregamento de conteúdo com placeholders animados.

Uso ​

vue
<script setup lang="ts">
import { Skeleton } from '@halfbyte/maka'
</script>

<template>
  <Skeleton variant="rect" width="200px" height="120px" />
</template>

Variantes ​

vue
<!-- Retângulo (card, imagem) -->
<Skeleton variant="rect" width="200px" height="80px" />

<!-- Círculo (avatar) -->
<Skeleton variant="circle" width="48px" height="48px" />

<!-- Linha de texto -->
<Skeleton variant="text" width="300px" />

<!-- Múltiplas linhas de texto -->
<Skeleton variant="text" :lines="3" width="300px" />

Props ​

PropTipoPadrão
variant"rect" | "circle" | "text""rect"
widthstring—
heightstring—
linesnumber1