Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
feat: radioButtonGroup component
Browse files Browse the repository at this point in the history
  • Loading branch information
Marine-Berthier authored and Marine-Berthier committed Jan 25, 2022
1 parent 49ff49e commit f989663
Showing 1 changed file with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions .storybook/stories/radioButtonGroupWithTitle.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,36 @@ export default {
args: {
storyName: "",
title: "Radio Group",
radioInputs: [{name: "radioButtonGroupWithTitle", value: "A",
checked: false,
onChange: (e) => {
onChange()(e)
}, renderLabel:() => "option 1"}, {name: "radioButtonGroupWithTitle", value: "B",
checked: false,
onChange: (e) => {
onChange()(e)
}, renderLabel:() => "option 2"}, {name: "radioButtonGroupWithTitle", value: "C",
checked: false,
onChange: (e) => {
onChange()(e)
}, renderLabel:() => "option 3"}]
radioInputs:
[
{
name: "radioButtonGroupWithTitle",
value: "A",
checked: false,
onChange: (e) => {
onChange()(e)
},
renderLabel:() => "option 1"
},
{
name: "radioButtonGroupWithTitle",
value: "B",
checked: false,
onChange: (e) => {
onChange()(e)
},
renderLabel:() => "option 2"
},
{
name: "radioButtonGroupWithTitle",
value: "C",
checked: false,
onChange: (e) => {
onChange()(e)
},
renderLabel:() => "option 3"
}
]
},
argTypes: {
storyName: {
Expand Down

0 comments on commit f989663

Please sign in to comment.