Feedback

Skeleton

Shows a loading placeholder that approximates the final layout.

Imports

Use the same component slug for React, Vue, and style token lookup. Do not import components from package roots.

import { Skeleton } from "@line/abc-def-react/skeleton";
<script setup lang="ts">
import { Skeleton } from "@line/abc-def-vue/skeleton";
</script>

Shadcn references

Compare the corresponding shadcn React and Vue documentation for the same component slug.

Basic usage

import { Skeleton } from "@line/abc-def-react/skeleton";

export function Example() {
  return (
    <div className="grid gap-2">
      <Skeleton className="h-4 w-40" />
      <Skeleton className="h-4 w-28" />
    </div>
  );
}
<script setup lang="ts">
import { Skeleton } from "@line/abc-def-vue/skeleton";
</script>

<template>
  <div class="grid gap-2">
    <Skeleton class="h-4 w-40" />
    <Skeleton class="h-4 w-28" />
  </div>
</template>

Component tokens

Component TokenSemantic TokenDefault Primitive Token
--skeleton-bg--muted--color-zinc-100

Composition exports

Skeleton

Usage notes

  • Match the final content dimensions.
  • Use for loading, not empty states.
  • Related component tokens use the `skeleton` token group in `@line/abc-def-styles/css`.