# 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]
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"
OrcHumanElfUndeadDisabled
```
# Textarea
Standard [#standard]
With Default Value [#with-default-value]
Installation [#installation]
```bash
pnpm dlx shadcn@latest add https://warcraftcn.com/r/textarea.json
```
Usage [#usage]
```tsx
import { Textarea } from "@/components/ui/warcraftcn/textarea";
;
```
# Toast
Installation [#installation]
```bash
pnpm dlx shadcn@latest add https://warcraftcn.com/r/toast.json
```
Usage [#usage]
```tsx
import { triggerScrollToast } from "@/components/ui/warcraftcn/toast";
import { Button } from "@/components/ui/warcraftcn/button";
export default function ToastExample() {
return (
);
}
```
# Tooltip
Hearthstone
Binds when picked up
Examples [#examples]
Default [#default]
Hearthstone
Binds when picked up
```tsx
HearthstoneBinds when picked up
```
Uncommon [#uncommon]
Outrunner's Cloak
Binds when equipped
```tsx
Outrunner's CloakBinds when equipped
```
Rare [#rare]
Azuresong Mageblade
Binds when picked up
```tsx
Azuresong MagebladeBinds when picked up
```
Epic [#epic]
Ashbringer
Binds when picked up
```tsx
AshbringerBinds when picked up
```
Legendary [#legendary]
Thunderfury
Binds when picked up
```tsx
ThunderfuryBinds when picked up
```
Side [#side]
Use the `side` prop to change the position of the tooltip.