# Introduction Welcome to warcraftcn-ui [#welcome-to-warcraftcn-ui] **warcraftcn-ui** is an open-source UI component library that brings the iconic visual style of classic Warcraft III to modern web applications. Whether you're building a fan project, a gaming community site, or just want that nostalgic RTS aesthetic, this library has you covered. What is warcraftcn-ui? [#what-is-warcraftcn-ui] This project provides a collection of beautifully crafted UI components inspired by the timeless design language of Warcraft III All components are designed to be **copy-paste ready** and work seamlessly with modern frameworks like React, Next.js, and more. # Components Code Block [#code-block] ```js console.log('Hello World'); ``` Cards [#cards] # Accordion The Fall of Lordaeron Prince Arthas Menethil returned home not as a savior, but as the harbinger of ruin. Under the influence of Frostmourne, he marched upon his own kingdom. The capital of Lordaeron fell in a single night, its banners burned and its people raised into undeath. Thus began the reign of the Scourge in the Eastern Kingdoms. The Rise of the Lich King High atop the Frozen Throne, the spirit of Ner’zhul awaited its chosen champion. Arthas ascended the icy spire and shattered the prison of the Lich King, donning the Helm of Domination. In that moment, the prince and the orc shaman became one being — the Lich King — ruler of the Scourge and master of death. The Battle of Mount Hyjal As Archimonde and the Burning Legion sought to claim the World Tree, an unlikely alliance formed. Humans, Orcs, and Night Elves stood united against annihilation. Upon the slopes of Mount Hyjal, sacrifice and strategy turned the tide, and the Legion’s invasion was shattered in arcane fire and ancient magic. Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/accordion.json ``` Usage [#usage] ```tsx import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "@/components/ui/warcraftcn/accordion"; Warchief Orders Build a stronghold quickly, then strike enemy outposts before they can fortify. ; ``` # Avatar Default [#default]
Orc Faction [#orc-faction]
Elf Faction [#elf-faction]
Human Faction [#human-faction]
Undead Faction [#undead-faction]
Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/avatar.json ``` Usage [#usage] ```tsx import { Avatar } from "@/components/ui/warcraftcn/avatar"; export default function AvatarExample () { return (
); } ``` # Badge Standard [#standard] Default Secondary Destructive Outline Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/badge.json ``` Usage [#usage] ```tsx import { Badge } from "@/components/ui/warcraftcn/badge"; Badge; ``` # Button Standard [#standard] With Frame [#with-frame] Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/button.json ``` Usage [#usage] ```tsx import { Button } from "@/components/ui/warcraftcn/button"; ; ``` # Card Standard [#standard] Arthas Menethil Prince of Lordaeron The former Crown Prince of Lordaeron, who became the Lich King after taking up the cursed blade Frostmourne. Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/card.json ``` Usage [#usage] ```tsx import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from "@/components/ui/warcraftcn/card"; Card Title Card description

Card content goes here.

Card footer

; ``` # Checkbox Default [#default] Accept terms and conditions Human Faction [#human-faction] Accept terms and conditions Orc Faction [#orc-faction] Accept terms and conditions Elf Faction [#elf-faction] Accept terms and conditions Undead Faction [#undead-faction] Accept terms and conditions Disabled [#disabled] Locked setting Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/checkbox.json ``` Usage [#usage] ```tsx import { Checkbox } from "@/components/ui/warcraftcn/checkbox"; ``` ```tsx Accept terms and conditions ``` Faction Variants [#faction-variants] ```tsx Human theme Orc theme Elf theme Undead theme ``` Disabled State [#disabled-state] ```tsx Locked setting ``` # Cursor Orc Faction [#orc-faction]
Blademaster Orc Hero Shadow Hunter Orc Hero Far Seer Orc Hero
Elf Faction [#elf-faction]
Warden Elf Hero Grove Keeper Elf Hero Demon Hunter Elf Hero
Human Faction [#human-faction]
Blood Mage Human Hero Archmage Human Hero Mountain King Human Hero
Undead Faction [#undead-faction]
Dread Lord Undead Hero Lich Undead Hero Death Knight Undead Hero
Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/cursor.json ``` Usage [#usage] ```tsx import { Cursor } from "@/components/ui/warcraftcn/cursor"; export default function CursorExample () { return ( .... ); } ``` # Dropdown Menu Standard [#standard] Choose Your Path
Warrior
Paladin
Mage
Priest
Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/dropdown-menu.json ``` Usage [#usage] ```tsx import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/warcraftcn/dropdown-menu"; import { Button } from "@/components/ui/warcraftcn/button"; Actions Profile Settings Logout ; ``` # Components # Input Standard [#standard] Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/input.json ``` Usage [#usage] ```tsx import { Input } from "@/components/ui/warcraftcn/input"; ; ``` # Label Standard [#standard]
Required [#required]
Disabled [#disabled]
Muted [#muted]
Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/label.json ``` Usage [#usage] ```tsx import { Label } from "@/components/ui/warcraftcn/label"; ``` With Required Indicator [#with-required-indicator] ```tsx ``` Disabled State [#disabled-state] ```tsx ``` # Pagination Standard Pagination [#standard-pagination] 1 2 3 ```tsx 1 2 3 ``` Disabled Navigation Bounds [#disabled-navigation-bounds] 1 2 3 ```tsx {/* Disable the previous button since we are on the first page */} 1 {/* ... */} ``` Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/pagination.json ``` Usage [#usage] ```tsx import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "@/components/ui/warcraftcn/pagination"; ``` ```tsx 1 ``` # Radio Group Default [#default]
Horizontal [#horizontal]
Disabled [#disabled]
Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/radio-group.json ``` Usage [#usage] ```tsx import { RadioGroup, RadioGroupItem, } from "@/components/ui/warcraftcn/radio-group"; import { Label } from "@/components/ui/warcraftcn/label";
; ``` Horizontal Orientation [#horizontal-orientation] ```tsx
``` Disabled State [#disabled-state] ```tsx
``` # Skeleton Default [#default]
Orc Faction [#orc-faction]
Elf Faction [#elf-faction]
Human Faction [#human-faction]
Undead Faction [#undead-faction]
Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/skeleton.json ``` Usage [#usage] ```tsx import { Skeleton } from "@/components/ui/warcraftcn/skeleton"; ; ``` Shapes [#shapes] ```tsx // Default rectangular shape // Circular shape (for avatars) ``` Factions [#factions] ```tsx // Orc - red/brown with axe icons // Elf - teal/green with leaf icons // Human - blue with shield icons // Undead - purple with skull icons ``` # Spinner Standard [#standard]
Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/spinner.json ``` Usage [#usage] ```tsx import { Spinner } from "@/components/ui/warcraftcn/spinner"; ``` Size [#size] ```tsx ``` In Buttons [#in-buttons] ```tsx import { Button } from "@/components/ui/warcraftcn/button"; import { Spinner } from "@/components/ui/warcraftcn/spinner"; ; ``` Use Cases [#use-cases] Button Loading State [#button-loading-state] Badge Status [#badge-status]
Syncing Updating
Input Prefix [#input-prefix]
Card Processing State [#card-processing-state] Ritual Queue Preparing structure for summoning. Altar of Darkness # Tabs Default (No Faction) [#default-no-faction] Orc Human Elf Undead Disabled
  • Fierce warriors forged in battle.
  • Homeland: Durotar
  • Defenders of Azeroth and champions of the Alliance.
  • Highly adaptable; masters of magic and sword.
  • Mystical guardians of the forests.
  • Possess ancient knowledge & magical prowess.
  • Ruthless minions of the Lich King.
  • Wield dark magic and necromantic abilities.
Orc Human Elf Undead Disabled
  • Fierce warriors forged in battle.
  • Homeland: Durotar
  • Defenders of Azeroth and champions of the Alliance.
  • Highly adaptable; masters of magic and sword.
  • Mystical guardians of the forests.
  • Possess ancient knowledge & magical prowess.
  • Ruthless minions of the Lich King.
  • Wield dark magic and necromantic abilities.
Human Faction [#human-faction] Orc Human Elf Undead Disabled
  • Enemies to human civilization.
  • Renowned for raw power and raid tactics.
  • The noble defenders of Azeroth.
  • Mastery over the sword and arcane.
  • Trusted ancient allies.
  • Command wisdom and magic.
  • Sworn foes, bringers of darkness.
  • Once-humans corrupted by undeath.
Orc Human Elf Undead Disabled
  • Enemies to human civilization.
  • Renowned for raw power and raid tactics.
  • The noble defenders of Azeroth.
  • Mastery over the sword and arcane.
  • Trusted ancient allies.
  • Command wisdom and magic.
  • Sworn foes, bringers of darkness.
  • Once-humans corrupted by undeath.
Orc Faction [#orc-faction] Orc Human Elf Undead Disabled
  • Fearless warriors from Durotar.
  • Masters of the axe and war drum.
  • Traditional rivals; skilled in fortification.
  • Survivors of countless conflicts.
  • Mysterious magic and archery skills.
  • Elusive allies and foes in equal measure.
  • Dreadful forces risen against the living.
  • Corrupted by the Lich King's influence.
Orc Human Elf Undead Disabled
  • Fearless warriors from Durotar.
  • Masters of the axe and war drum.
  • Traditional rivals; skilled in fortification.
  • Survivors of countless conflicts.
  • Mysterious magic and archery skills.
  • Elusive allies and foes in equal measure.
  • Dreadful forces risen against the living.
  • Corrupted by the Lich King's influence.
Elf Faction [#elf-faction] Orc Human Elf Undead Disabled
  • Respect forest might, but follow their own way.
  • Conflicted alliances with the elves.
  • Staunch defenders of civilization and order.
  • Sometimes distrust elven secrecy.
  • The ancient, magical Kaldorei.
  • Guardians of the Emerald Dream.
  • Bane of all living things.
  • Dark magics threaten elven forests.
Orc Human Elf Undead Disabled
  • Respect forest might, but follow their own way.
  • Conflicted alliances with the elves.
  • Staunch defenders of civilization and order.
  • Sometimes distrust elven secrecy.
  • The ancient, magical Kaldorei.
  • Guardians of the Emerald Dream.
  • Bane of all living things.
  • Dark magics threaten elven forests.
Undead Faction [#undead-faction] Orc Human Elf Undead Disabled
  • Stand at odds with the undead's blight.
  • Terrorized by the undead like no other.
  • Great losses in Lordaeron's fall.
  • Lands corrupted, groves despoiled.
  • Bitter enemies of the Scourge.
  • Servants of the Lich King, risen from the grave.
  • Seek to spread undeath across Azeroth.
Orc Human Elf Undead Disabled
  • Stand at odds with the undead's blight.
  • Terrorized by the undead like no other.
  • Great losses in Lordaeron's fall.
  • Lands corrupted, groves despoiled.
  • Bitter enemies of the Scourge.
  • Servants of the Lich King, risen from the grave.
  • Seek to spread undeath across Azeroth.
Installation [#installation] ```bash pnpm dlx shadcn@latest add https://warcraftcn.com/r/tabs.json ``` Usage [#usage] ```tsx import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/warcraftcn/tabs" Orc Human Elf Undead Disabled ``` # Textarea Standard [#standard]