Skip to content

Commit

Permalink
docs(ffe-form-react): unique names in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hellstrand committed Dec 17, 2024
1 parent 14bbbec commit 16e2f87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ffe-form-react/src/RadioButtonInputGroup.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const Standard: Story = {
args: {
inline: false,
onColoredBg: false,
name: 'name',
name: 'favorittlukt',
label: 'Hva er din favorittlukt?',
},
render: function Render(args) {
Expand All @@ -42,7 +42,7 @@ export const Standard: Story = {
};

export const FieldMessage: Story = {
args: { ...Standard.args, fieldMessage: 'Feil lukt' },
args: { ...Standard.args, fieldMessage: 'Feil lukt', name: 'feil-lukt' },
render: function Render(args) {
return (
<RadioButtonInputGroup {...args}>
Expand All @@ -65,7 +65,7 @@ export const FieldMessage: Story = {
};

export const WithRadioSwitch: Story = {
args: { ...Standard.args },
args: { ...Standard.args, name: 'radio-switch' },
render: function Render(args) {
return (
<RadioButtonInputGroup {...args}>
Expand All @@ -84,7 +84,7 @@ export const WithRadioSwitch: Story = {
};

export const WithRadioBlock: Story = {
args: { ...Standard.args, selectedValue: 'yes' },
args: { ...Standard.args, selectedValue: 'yes', name: 'radio-block' },
render: function Render(args) {
return (
<RadioButtonInputGroup {...args}>
Expand Down

0 comments on commit 16e2f87

Please sign in to comment.