Warcraft Skeleton
warcraftcn/skeletonFreeComponent
A Warcraft-themed skeleton/loading placeholder with faction themes (orc, elf, human, undead) and shimmer animation
Live preview
live · rendered by the registry
Rendered by warcraftcn on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://www.warcraftcn.com/r/skeleton.jsonSource
1import { cva, type VariantProps } from "class-variance-authority";2import type * as React from "react";34import { cn } from "@/lib/utils";56import "@/components/ui/warcraftcn/styles/warcraft.css";78const skeletonVariants = cva(9 "fantasy relative overflow-hidden",10 {11 variants: {12 variant: {13 default: "rounded-md",14 circular: "rounded-full",15 },16 faction: {17 default: "wc-skeleton",18 orc: "wc-skeleton-orc",19 elf: "wc-skeleton-elf",20 human: "wc-skeleton-human",21 undead: "wc-skeleton-undead",22 },23 },24 defaultVariants: {25 variant: "default",26 faction: "default",27 },28 }29);3031function Skeleton({32 className,33 variant,34 faction,35 ...props36}: React.ComponentProps<"div"> & VariantProps<typeof skeletonVariants>) {37 return (38 <div39 className={cn(skeletonVariants({ variant, faction }), className)}40 data-slot="skeleton"41 {...props}42 >43 {/* Faction icon overlay with pulse animation */}44 <div className="wc-skeleton-icons" aria-hidden="true" />45 {/* Shimmer effect overlay */}46 <div className="wc-skeleton-shimmer" aria-hidden="true" />47 </div>48 );49}5051export { Skeleton, skeletonVariants };
Files it writes
More from warcraftcn
All 16 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Warcraft Accordionaccordion | warcraftcn | Components | Free | 1 dep · 7 files | |
| Warcraft Avataravatar | warcraftcn | Components | Free | no deps · 7 files | |
| Warcraft Badgebadge | warcraftcn | Components | Free | no deps · 4 files | |
| Warcraft Buttonbutton | warcraftcn | Components | Free | no deps · 6 files | |
| Warcraft Cardcard | warcraftcn | Components | Free | no deps · 3 files | |
| Warcraft Checkboxcheckbox | warcraftcn | Components | Free | 1 dep · 12 files | |
| Warcraft Cursorcursor | warcraftcn | Components | Free | no deps · 6 files | |
| Warcraft Dropdown Menudropdown-menu | warcraftcn | Components | Free | 2 deps · 3 files |
