Inputs

RadioGroup

A group of radio buttons with keyboard navigation. The group handles arrow key navigation and value management.

LlmRadioGroup + LlmRadio

Demo

<LlmRadioGroup name="plan" value="free" onValueChange={(v) => console.log(v)}>
  <LlmRadio radioValue="free">Free</LlmRadio>
  <LlmRadio radioValue="pro">Pro</LlmRadio>
  <LlmRadio radioValue="enterprise">Enterprise</LlmRadio>
</LlmRadioGroup>

API

PropTypeDefaultDescription
valuestring''Currently selected value
onValueChange(value: string) => voidCalled when selection changes
disabledbooleanfalseDisables all radios in the group
readonlybooleanfalseMakes all radios in the group read-only
invalidbooleanfalseApplies invalid/error styling
requiredbooleanfalseMarks field as required
namestring''HTML name attribute (propagated to radios)

Import

import { LlmRadioGroup, LlmRadio } from '@atelier-ui/react';