BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/warcraftcn/label

Warcraft Label

warcraftcn/label
FreeComponent

A Warcraft-themed label component for form inputs with required indicator and disabled state support

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/label.json

Source

components/ui/warcraftcn/label.tsxwww.warcraftcn.com/r/label.json
1"use client";
2
3import * as React from "react";
4import * as LabelPrimitive from "@radix-ui/react-label";
5import { cva, type VariantProps } from "class-variance-authority";
6
7import { cn } from "@/lib/utils";
8
9import "@/components/ui/warcraftcn/styles/warcraft.css";
10
11const labelVariants = cva(
12 "fantasy text-sm font-medium leading-none select-none",
13 {
14 variants: {
15 variant: {
16 default:
17 "text-amber-200 [text-shadow:0_0_6px_rgba(251,191,36,0.25)]",
18 muted: "text-amber-200/60",
19 },
20 },
21 defaultVariants: {
22 variant: "default",
23 },
24 }
25);
26
27type LabelProps = React.ComponentProps<typeof LabelPrimitive.Root> &
28 VariantProps<typeof labelVariants> & {
29 required?: boolean;
30 disabled?: boolean;
31 };
32
33function Label({
34 className,
35 variant,
36 required = false,
37 disabled = false,
38 children,
39 ...props
40}: LabelProps) {
41 return (
42 <LabelPrimitive.Root
43 data-slot="label"
44 data-disabled={disabled || undefined}
45 className={cn(
46 labelVariants({ variant }),
47 disabled && "cursor-not-allowed opacity-50",
48 className
49 )}
50 {...props}
51 >
52 {children}
53 {required && (
54 <>
55 <span
56 aria-hidden="true"
57 className="ml-1 text-red-500 [text-shadow:0_0_6px_rgba(239,68,68,0.4)]"
58 >
59 ✦
60 </span>
61 <span className="sr-only">(required)</span>
62 </>
63 )}
64 </LabelPrimitive.Root>
65 );
66}
67
68export { Label, labelVariants };
69export type { LabelProps };

What it pulls in

npm packages

  • @radix-ui/react-label

Files it writes

  • components/ui/warcraftcn/label.tsx
  • components/ui/warcraftcn/styles/warcraft.css

Facts

Registry
warcraftcn
Type
registry:component
Access
Free
Files written
2
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on warcraftcn www.warcraftcn.com TheOrcDev/warcraftcn-ui on GitHub Raw registry item This item as JSON

More from warcraftcn

All 16 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Warcraft AccordionaccordionwarcraftcnComponentsFree1 dep · 7 files
Warcraft AvataravatarwarcraftcnComponentsFreeno deps · 7 files
Warcraft BadgebadgewarcraftcnComponentsFreeno deps · 4 files
Warcraft ButtonbuttonwarcraftcnComponentsFreeno deps · 6 files
Warcraft CardcardwarcraftcnComponentsFreeno deps · 3 files
Warcraft CheckboxcheckboxwarcraftcnComponentsFree1 dep · 12 files
Warcraft CursorcursorwarcraftcnComponentsFreeno deps · 6 files
Warcraft Dropdown Menudropdown-menuwarcraftcnComponentsFree2 deps · 3 files
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