Ballmac UI home

Radio Group

Single-choice radios with optional full-card labels, descriptions, and large pointer targets around Radix keyboard navigation.

Digest frequency

Choose when to get your project summary.

Installation

$ pnpm dlx shadcn@latest add @ballmac/radio-group

Usage

import { RadioGroup, RadioGroupItem, RadioGroupOption } from "@/components/ballmac/radio-group"

The full example is in the Code tab above.

Examples

Compact choices

Export format

API reference

PropTypeDefault
title*

Heading shown beside the radio control.

string—
description

Supporting copy below the option heading.

string—
value*

Value submitted by the radio group.

string—
disabled

Disables this choice.

boolean—

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
TabEnters the radio group
Arrow keysMoves and selects among enabled choices
SpaceSelects the focused choice

Use with AI

Choose exactly one option in a form; use descriptive card labels when choices need context. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Radio Group (@ballmac/radio-group) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • A few mutually exclusive preferences
  • Pricing or delivery options with explanations

Not for

  • Many options; use select
  • Multiple selections; use checkbox or toggle-group

Registry JSON: https://ui.ballmac.com/r/radio-group.json

Credits

Free to use in personal and commercial projects.