shadcn-solid
DocsComponentsCharts


Get Started
  • Introduction
  • Installation
  • Theming
  • Dark Mode
Form
  • Tanstack Form
Components
  • Accordion
  • Alert
  • Alert Dialog
  • Badge
  • Breadcrumbs
  • Button Group
  • Button
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Collapsible
  • Combobox
  • Command
  • Context Menu
  • Data Table
  • Date Picker
  • Dialog
  • Drawer
  • Dropdown Menu
  • File Field
  • Hover Card
  • Kbd
  • Menubar
  • Navigation Menu
  • Number Field
  • OTP Field
  • Pagination
  • Popover
  • Progress
  • Radio Group
  • Resizable
  • Search
  • Segmented Control
  • Select
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Sonner
  • Switch
  • Table
  • Tabs
  • Text Field
  • Toggle Group
  • Toggle Button
  • Tooltip

Radio Group

A set of checkable buttons—known as radio buttons—where no more than one of the buttons can be checked at a time.

Docs API Reference

Component radio-group-demo not found in registry.

Installation

Copy and paste the following code into your project:

Usage

import {
  RadioGroup,
  RadioGroupItemControl,
  RadioGroupItemIndicator,
  RadioGroupItemInput,
  RadioGroupItemLabel,
  RadioGroupItems,
  RadioGroupLabel,
} from "@components/ui/radio-group"
<RadioGroup>
  <RadioGroupLabel />
  <RadioGroupItems>
    <RadioGroupItem>
      <RadioGroupItemInput />
      <RadioGroupItemControl>
        <RadioGroupItemIndicator />
      </RadioGroupItemControl>
      <RadioGroupItemLabel />
    </RadioGroupItem>
  </RadioGroupItems>
</RadioGroup>

Changelog

2025-11-13 Separate <RadioGroup.ItemInput /> from <RadioGroup.Item />

The <RadioGroup.ItemInput /> component has been separated from the <RadioGroup.Item /> component for better flexibility and customization.

ProgressResizable
Built & designed by shadcn. Ported to Solid by hngngn. The source code is available on GitHub.