On this page

Skeleton

Install, props and the parts Skeleton is built from.

Install

Run this in the app, after shadcn-vue init and the Beehexa theme (Button › Code):

npx shadcn-vue@latest add https://beehexa.design/r/skeleton.json

Use

Size each shape with classes; the skeleton brings only the fill, the radius and the pulse.

<script setup lang="ts">
import { Skeleton } from '@/components/ui/skeleton'
</script>

<template>
  <div aria-busy="true" class="flex flex-col gap-(--bh-space-100)">
    <span class="sr-only">Loading orders</span>
    <Skeleton class="h-(--bh-space-200) w-3/4" />
    <Skeleton class="h-(--bh-space-200) w-1/2" />
  </div>
</template>

Props

Prop Values Notes
class string Width, height and, for an avatar, rounded-(--bh-radius-full)

Built on

A plain div with the shadcn-vue Skeleton API. Beehexa adds the tokens, aria-hidden="true" and a still skeleton under reduced motion.