Getting Started
Foundations
Components
Search for a command to run...
Radio groups are used when users need to select a single option from a list of predefined choices. Unlike checkboxes which allow multiple selections, radio buttons ensure only one option can be selected at a time. They're ideal for required form fields where a choice must be made, settings where only one option applies, or any scenario requiring a single selection from multiple alternatives.
Built on top of Radix UI's RadioGroup primitive with full keyboard navigation (Arrow keys to move between options, Space to select), focus management, and accessibility support including proper ARIA attributes and roles.
import { RadioGroup } from "@strongtie/design-system/radio-group"This module exports the following components:
RadioGroupRadioGroupItemAll components extend Radix UI primitives. See the Radix UI documentation for all available props.
Components can be styled using the className prop. The design system uses Tailwind CSS for styling.
The following data attributes are used to identify component parts:
radio-groupradio-group-indicatorradio-group-itemOther CSS classes used by this component:
circleradio-groupradio-group-itemradio-group-item-indicatorThis component inherits accessibility features from Radix UI, including: