Warcraft Radio Group
warcraftcn/radio-groupFreeComponent
A Warcraft-themed radio group component with gem socket styling and gold glow indicators
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/radio-group.jsonSource
1"use client";23import * as React from "react";4import { RadioGroup as RadioGroupPrimitive } from "radix-ui";56import { cn } from "@/lib/utils";78import "@/components/ui/warcraftcn/styles/warcraft.css";910interface RadioGroupProps11 extends React.ComponentProps<typeof RadioGroupPrimitive.Root> {12 orientation?: "vertical" | "horizontal";13}1415type RadioGroupItemProps = React.ComponentProps<16 typeof RadioGroupPrimitive.Item17>;1819function RadioGroup({20 className,21 orientation = "vertical",22 ...props23}: RadioGroupProps) {24 return (25 <RadioGroupPrimitive.Root26 data-slot="radio-group"27 className={cn(28 "fantasy flex gap-3",29 orientation === "horizontal" ? "flex-row flex-wrap" : "flex-col",30 className31 )}32 orientation={orientation}33 {...props}34 />35 );36}3738function RadioGroupItem({39 className,40 ...props41}: RadioGroupItemProps) {42 return (43 <RadioGroupPrimitive.Item44 data-slot="radio-group-item"45 className={cn("wc-radio-socket", className)}46 {...props}47 >48 <RadioGroupPrimitive.Indicator className="wc-radio-gem" />49 </RadioGroupPrimitive.Item>50 );51}5253export { RadioGroup, RadioGroupItem };54export type { RadioGroupProps, RadioGroupItemProps };
What it pulls in
npm packages
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 |
