RadioGroup

Forms

A single-choice group with a consistent label, description and error treatment.

Live preview
Plan

Installation

Import the component from the kit. The package ships source and is transpiled by Next.js.

Import
import { RadioGroup } from "@nphuonha/ui-kit";

Usage

Compose the component with your own content. All controls share the same focus, disabled and invalid states.

Usage
<RadioGroup label="Plan" options={plans} defaultValue="pro" />

API Reference

Props are additive to the underlying Base UI or native element.

PropTypeDefaultDescription
optionsRadioOption[]—Value/label/description entries.
valuestring—Controlled value.
defaultValuestring—Uncontrolled initial value.
onValueChange(value: string) => void—Called when the selection changes.
labelReactNode—Group label.
descriptionReactNode—Group helper text.
errorReactNode—Group error message.
orientation"vertical" | "horizontal""vertical"Layout direction.