From 0ebad759f960562ee59cd93ecee56c71c36a93f5 Mon Sep 17 00:00:00 2001 From: adilallo <39313955+adilallo@users.noreply.github.com> Date: Wed, 4 Feb 2026 13:57:51 -0700 Subject: [PATCH] Update radio group component --- app/components/RadioGroup/RadioGroup.types.ts | 1 + app/components/RadioGroup/RadioGroup.view.tsx | 46 +++ stories/RadioGroup.stories.js | 278 ++++++++---------- 3 files changed, 172 insertions(+), 153 deletions(-) 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}
-