Radio Group
crenspire-glass-ui/radio-groupFreeComponent
A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time with optional glassy variant.
Live preview
live · rendered by the registry
Rendered by crenspire/glass-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://glass-ui.crenspire.com/r/radio-group.jsonSource
1"use client"23import * as React from "react"4import { RadioGroup as BaseRadioGroup, RadioGroupItem as BaseRadioGroupItem } from "@/components/ui/radio-group"5import { cn } from "@/lib/utils"67export interface RadioGroupItemProps extends React.ComponentProps<typeof BaseRadioGroupItem> {8 glow?: boolean9}1011/**12 * Glass UI Radio Group - Enhanced radio group with glassy effects13 */14export const RadioGroupItem = React.forwardRef<15 React.ElementRef<typeof BaseRadioGroupItem>,16 RadioGroupItemProps17>(({ className, variant = "glass", glow = false, ...props }, ref) => {18 return (19 <BaseRadioGroupItem20 ref={ref}21 variant={variant}22 className={cn(23 glow && "data-[state=checked]:shadow-lg data-[state=checked]:shadow-purple-500/30",24 "transition-all duration-200",25 className26 )}27 {...props}28 />29 )30})31RadioGroupItem.displayName = "RadioGroupItem"3233export {34 BaseRadioGroup as RadioGroup,35}36
What it pulls in
npm packages
Other registry items
Files it writes
More from crenspire/glass-ui
All 49 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | crenspire/glass-ui | Components | Free | 2 deps · 5 files | |
| Alertalert | crenspire/glass-ui | Components | Free | no deps · 5 files | |
| Alert Dialogalert-dialog | crenspire/glass-ui | Components | Free | 1 dep · 5 files | |
| Avataravatar | crenspire/glass-ui | Components | Free | 1 dep · 5 files | |
| Badgebadge | crenspire/glass-ui | Components | Free | no deps · 5 files | |
| Breadcrumbbreadcrumb | crenspire/glass-ui | Components | Free | 2 deps · 5 files | |
| Buttonbutton | crenspire/glass-ui | Components | Free | 1 dep · 5 files | |
| Button Groupbutton-group | crenspire/glass-ui | Components | Free | no deps · 5 files |
