Componentfeedback0.21 KB gzipZero dependencies

Skeleton

Dashed placeholder box with gentle pulse animation.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add skeleton

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { Skeleton } from "@/components/ui/skeleton"; <Skeleton className="h-4 w-48" />

Source code

skeleton.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxskeleton.tsx20 lines
import * as React from "react";import { cn } from "./lib/utils"; export interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {  className?: string;} export function Skeleton({ className, ...props }: SkeletonProps) {  return (    <div      aria-hidden="true"      className={cn(        "motion-safe:animate-pulse rounded-md border border-dashed border-border bg-secondary/80",        className      )}      {...props}    />  );} 

Props

PropTypeDescription
classNamestringOptional Tailwind or custom CSS classes merged with component styles.