BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/patchui/skeleton

Skeleton

patchui/skeleton
FreeComponent

patchui publishes no description for this item.

Install it

npx shadcn@latest add https://ui.hotfix.jobs/r/skeleton.json

Source

registry/components/ui/skeleton.tsxui.hotfix.jobs/r/skeleton.json
1import type * as React from "react";
2import { cn } from "@/lib/utils";
3
4export interface SkeletonProps
5 extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
6 /** Number → px; string passed through. */
7 width?: number | string;
8 /** Number → px; string passed through. */
9 height?: number | string;
10 shape?: "rounded" | "pill" | "squared";
11 animated?: boolean;
12 /** When false, render `children` instead of the skeleton. */
13 show?: boolean;
14 children?: React.ReactNode;
15}
16
17/** Placeholder for async content. */
18export function Skeleton({
19 className,
20 width,
21 height,
22 shape = "rounded",
23 animated = true,
24 show = true,
25 children,
26 style,
27 ...props
28}: SkeletonProps): React.ReactElement {
29 if (!show) return <>{children}</> as unknown as React.ReactElement;
30
31 const dimStyle: React.CSSProperties = {
32 ...(width != null && { width: typeof width === "number" ? `${width}px` : width }),
33 ...(height != null && { height: typeof height === "number" ? `${height}px` : height }),
34 ...style,
35 };
36
37 return (
38 <div
39 aria-hidden="true"
40 data-slot="skeleton"
41 className={cn(
42 "bg-fill-2",
43 shape === "rounded" && "rounded-[var(--radius-6)]",
44 shape === "squared" && "rounded-none",
45 shape === "pill" && "rounded-full",
46 animated &&
47 "animate-[patch-skeleton-pulse_1.8s_ease-in-out_infinite] motion-reduce:animate-none",
48 className,
49 )}
50 style={dimStyle}
51 {...props}
52 />
53 );
54}

What it pulls in

Other registry items

  • https://ui.hotfix.jobs/r/tokens.json
  • https://ui.hotfix.jobs/r/utils.json

Files it writes

  • registry/components/ui/skeleton.tsx

Facts

Registry
patchui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

ui.hotfix.jobs hotfix-jobs/patch-ui on GitHub Raw registry item This item as JSON

More from patchui

All 51 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionpatchuiComponentsFree2 deps
AvataravatarpatchuiComponentsFree3 deps
BadgebadgepatchuiComponentsFree2 deps
BreadcrumbbreadcrumbpatchuiComponentsFree1 dep
ButtonbuttonpatchuiComponentsFree2 deps
CalendarcalendarpatchuiComponentsFree1 dep
CardcardpatchuiComponentsFree1 dep
CheckboxcheckboxpatchuiComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex