Radio Group
glasswave/radio-groupFreeComponent
Radio group button for single selection.
Live preview
live · rendered by the registry
Rendered by glasswave on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://glasswave.denizisik.com/r/radio-group.jsonSource
1"use client";23import * as RadixRadio from "@radix-ui/react-radio-group";4import { type ComponentPropsWithoutRef, forwardRef } from "react";5import { cn } from "@/lib/utils";6import { focusRing, glass } from "@/lib/glass";78export const RadioGroup = RadixRadio.Root;910export const RadioGroupItem = forwardRef<11 HTMLButtonElement,12 ComponentPropsWithoutRef<typeof RadixRadio.Item>13>(({ className, ...props }, ref) => (14 <RadixRadio.Item15 ref={ref as any}16 className={cn(17 glass,18 focusRing,19 "w-5 h-5 rounded-full flex items-center justify-center data-[state=checked]:bg-[#007AFF] data-[state=checked]:border-[#007AFF]",20 className,21 )}22 {...props}23 >24 <RadixRadio.Indicator className="w-2 h-2 bg-white rounded-full" />25 </RadixRadio.Item>26));27RadioGroupItem.displayName = "RadioGroupItem";
What it pulls in
npm packages
Other registry items
Files it writes
More from glasswave
All 60 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | glasswave | Components | Free | 2 deps | |
| Alertalert | glasswave | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | glasswave | Components | Free | 1 dep | |
| Aspect Ratioaspect-ratio | glasswave | Components | Free | 1 dep | |
| Avataravatar | glasswave | Components | Free | 1 dep | |
| Badgebadge | glasswave | Components | Free | 1 dep | |
| Breadcrumbbreadcrumb | glasswave | Components | Free | 2 deps | |
| Buttonbutton | glasswave | Components | Free | 2 deps |
