Skeleton
Skeleton is part of the Actions and feedback group. Placeholder block for loading layouts before content is available.
Installation
Section titled “Installation”npx bambiui add skeleton --framework reactnpx bambiui add skeleton --framework solidnpx bambiui add skeleton --framework sveltenpx bambiui add skeleton --framework vueimport { 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>Preview
Section titled “Preview”Behavior
Section titled “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.
Accessibility
Section titled “Accessibility”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.
Exports
Section titled “Exports”SkeletonTokens
Section titled “Tokens”Customize tokens after installing and previewing the component. Relevant tokens include:
--bambi-muted--bambi-background