Skip to content
nexubDesign System
v2.4.0

Components · Form Controls

Radio Group

StableSince v0.0.1

Group of mutually exclusive radio inputs.

import { RadioGroup } from '@nexub/react';

Examples

Default

Horizontal

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.