Skip to content

Commit

Permalink
(BSR)[PRO] feat: add disabled with children component case to RadioGr…
Browse files Browse the repository at this point in the history
…oup story
  • Loading branch information
ahello-pass committed Jan 13, 2025
1 parent 58d5129 commit 3d249a7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pro/src/ui-kit/form/RadioGroup/RadioGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,27 @@ export const InnerRadioGroupWithNoLegend = {
],
},
}

export const WithChildrenDisabled = {
args: {
...defaultArgs,
disabled: true,
variant: RadioVariant.BOX,
group: defaultArgs.group.map((g, i) => ({
...g,
childrenOnChecked: (
<RadioGroup
legend="Choisir une sous-option"
name="name 4"
variant={RadioVariant.BOX}
group={[
{ label: `Sous-option ${i + 1} 1`, value: `option${i}1` },
{ label: `Sous-option ${i + 1} 2`, value: `option${i}2` },
]}
disabled={true}
/>
),
})),
name: 'name 3',
},
}

0 comments on commit 3d249a7

Please sign in to comment.