LLabanaat

RadioGroup

Single-choice group with roving tabindex and arrow-key navigation, provided by Radix.

<RadioGroup
  label="Default member permissions"
  defaultValue="member"
  options={[
    { value: "viewer", label: "Viewer", description: "Read-only access to all projects." },
    { value: "member", label: "Member", description: "Can create and edit projects." },
  ]}
/>

Editable — change the code above and the preview updates live.

Installation

import { RadioGroup } from "@labanaat/ui/radio-group";

Props

PropTypeDefaultDescription
options{ value, label, description?, disabled? }[]The radio options
labelstringGroup label (aria-label)
value / defaultValuestringControlled / uncontrolled selected value
onValueChange(value) => voidChange handler