Skip to content
nexubDesign System
v12.7.0

Components · Form Controls

Radio Group

StableAdded v0.0.1

Group of mutually exclusive radio inputs.

import { RadioGroup } from '@nexub/react';
View as Markdown

Playground

Props

TSX
<RadioGroup.Root defaultValue="monthly">…</RadioGroup.Root>

Examples

Default

Horizontal

States

  • default
  • disabled

Props

Props
PropTypeDefaultDescription
RadioGroup.Rootcompound—Root provider that manages selection state.
RadioGroup.Itemcompound—Individual radio option within the group.
valuestring—The controlled selected value.
defaultValuestring—The initial selected value when uncontrolled.
onValueChange(value: string) => void—Callback fired when the selection changes.
disabledboolean—Disables all items in the group.
orientation'horizontal' | 'vertical'—Layout orientation of the radio items.