Skip to content

Skeleton

Skeleton is part of the Actions and feedback group. Placeholder block for loading layouts before content is available.

Terminal window
npx bambiui add skeleton --framework react
Terminal window
npx bambiui add skeleton --framework solid
Terminal window
npx bambiui add skeleton --framework svelte
Terminal window
npx bambiui add skeleton --framework vue
import { Skeleton } from "@/components/ui/skeleton";
export function Example() {
return <Skeleton />;
}
import { Skeleton } from "~/components/ui/skeleton";
export function Example() {
return <Skeleton />;
}
<script lang="ts">
import { Skeleton } from "$lib/components/ui/skeleton";
</script>
<Skeleton />
<script setup lang="ts">
import { Skeleton } from "@/components/ui/skeleton";
</script>
<template>
<Skeleton />
</template>
Skeleton preview should be verified in the target framework after copying the component source. Interactive behavior comes from generated public artifacts, not docs-only mock behavior.

Use to reserve approximate content shape and reduce layout shift.

Generated output uses serializable data-* attributes for state and styling. Controlled components fire bambi:<event-name> events and expect application state to update externally; uncontrolled components manage local source state and still fire events.

Use semantic labels, visible focus states, and keyboard interaction patterns appropriate for Skeleton. Do not hide required instructions in transient UI. Verify focus movement and disabled states in the installed framework output.

Skeleton

Customize tokens after installing and previewing the component. Relevant tokens include:

  • --bambi-muted
  • --bambi-background