Radio Group

PreviousNext

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.

Docs
glass-uicomponent

Preview

Loading preview…
lib/utils.ts
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}

Installation

npx shadcn@latest add @glass-ui/radio-group

Usage

import { RadioGroup } from "@/components/radio-group"
<RadioGroup />