Skip to Content
Liquid Glass UI
Components

RadioGroup

Responsive Apple Liquid Glass radio group adapting between 22px mobile touch rings and 16px macOS 27 precision radio buttons, with group-level size/glass inheritance and spring inner dots.

Fully compatible with the standard shadcn/ui JSX API (<RadioGroup> / <RadioGroupItem>), adapting automatically via CSS viewport breakpoints (md: / 768px):

  • Desktop (>= 768px · macOS 27): Aligned with macOS 27 UI Kit 3 Rg, featuring a 16×16 circular ring with a 6px glossy white inner dot and Apple Blue sheen.
  • Mobile (< 768px · iOS 27): Expands to a 22×22 circular touch target with enlarged hit area for effortless one-handed selection.
  • Group-level inheritance: Set size, glass, or disableMotion once on <RadioGroup> to cascade across all <RadioGroupItem> children, with optional per-item overrides.

Responsive Live Preview

Switch AirDrop visibility inside a Liquid Glass panel; toggle Desktop / Mobile in the top-right to compare sizing:

apple-liquid-ui/preview/radio-group-liquid-hero
MacBook · 16:10

Installation (Shadcn Registry)

npx shadcn@latest add @apple-liquid/radio-group

Size Scale & Disabled States

Includes sm, default, and lg responsive sizes and disabled state previews:

apple-liquid-ui/preview/radio-group-sizes
MacBook · 16:10

Usage

import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group';

export function Example() {
  return (
    <RadioGroup defaultValue="contacts">
      <label className="flex items-center gap-2.5">
        <RadioGroupItem value="contacts" />
        <span className="text-sm">Contacts Only</span>
      </label>
      <label className="flex items-center gap-2.5">
        <RadioGroupItem value="everyone" />
        <span className="text-sm">Everyone</span>
      </label>
    </RadioGroup>
  );
}

Props API

RadioGroup

PropTypeDefaultDescription
size'sm' | 'default' | 'lg''default'Default size propagated to items (mobile 18/22/26px ↔ desktop 14/16/20px)
glassbooleantrueLiquid Glass toggle propagated to items; false renders 100% opaque Bordered fill
disableMotionbooleanfalseDisable spring scale animation on the selected inner dot

RadioGroupItem

PropTypeDefaultDescription
size'sm' | 'default' | 'lg'Inherited from RadioGroupOverride size for this item
glassbooleanInherited from RadioGroupOverride glass material for this item
disableMotionbooleanInherited from RadioGroupOverride motion toggle for this item

On this page