# V radio group 13

> Theme Selector

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/v-radio-group-13).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/v-radio-group-13
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/cnippet/v-radio-group-13-light-03f2c42ee555ada2.png
- Registry item: https://ui.cnippet.dev/r/v-radio-group-13.json
- Categories: radio group
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.cnippet.dev/r/v-radio-group-13.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/radio-group`

## Files

### `registry/default/variants/v-radio-group-13.tsx`

```tsx
import { MonitorIcon, MoonIcon, SunIcon } from "lucide-react";
import { Label } from "@/registry/default/ui/label";
import { Radio, RadioGroup } from "@/registry/default/ui/radio-group";

const themes = [
  { Icon: SunIcon, label: "Light", value: "light" },
  { Icon: MoonIcon, label: "Dark", value: "dark" },
  { Icon: MonitorIcon, label: "System", value: "system" },
];

export default function Particle() {
  return (
    <RadioGroup className="flex-row gap-3" defaultValue="system">
      {themes.map(({ Icon, label, value }) => (
        <Label
          className="relative flex w-24 cursor-pointer flex-col items-center gap-3 rounded-lg border p-4 hover:bg-accent/50 has-data-checked:border-primary/48 has-data-checked:bg-accent/50"
          key={value}
        >
          <Radio className="absolute top-3 right-3" value={value} />
          <Icon aria-hidden="true" className="size-5" />
          <span className="text-sm">{label}</span>
        </Label>
      ))}
    </RadioGroup>
  );
}
```
