diff --git a/app/components/RadioGroup/RadioGroup.types.ts b/app/components/RadioGroup/RadioGroup.types.ts index c3d5aef..b044e1b 100644 --- a/app/components/RadioGroup/RadioGroup.types.ts +++ b/app/components/RadioGroup/RadioGroup.types.ts @@ -1,6 +1,7 @@ export interface RadioOption { value: string; label: string; + subtext?: string; ariaLabel?: string; } diff --git a/app/components/RadioGroup/RadioGroup.view.tsx b/app/components/RadioGroup/RadioGroup.view.tsx index aef4b30..e82df93 100644 --- a/app/components/RadioGroup/RadioGroup.view.tsx +++ b/app/components/RadioGroup/RadioGroup.view.tsx @@ -21,6 +21,52 @@ export function RadioGroupView({ {options.map((option) => { const isSelected = value === option.value; + // If there's subtext, render radio button without label and handle layout separately + if (option.subtext) { + return ( +
Selected: {value}
-