diff --git a/lib/components/radio/Radio.stories.tsx b/lib/components/radio/Radio.stories.tsx index c984f8d..79be899 100644 --- a/lib/components/radio/Radio.stories.tsx +++ b/lib/components/radio/Radio.stories.tsx @@ -1,7 +1,6 @@ import type { Meta, StoryObj } from "@storybook/react"; import { Radio } from "./Radio"; -import { IRadioGroup } from "./Radio.types"; const meta = { title: "FORMS/Radio/Radio", @@ -60,22 +59,3 @@ export const Disabled: Story = { isDisabled: true, }, }; - -const radioGroupArgs: IRadioGroup = { - value: "1", - layout: "horizontal", - onChange: (val) => console.log("checked: ", val), -}; - -export const RadioGroup = (props: IRadioGroup) => { - const all = { ...radioGroupArgs, ...props }; - return ( - - Option A - Option B - Option C - - ); -}; - -RadioGroup.args = radioGroupArgs; diff --git a/lib/components/radio/RadioGroup.stories.tsx b/lib/components/radio/RadioGroup.stories.tsx index 3112991..3fed162 100644 --- a/lib/components/radio/RadioGroup.stories.tsx +++ b/lib/components/radio/RadioGroup.stories.tsx @@ -45,6 +45,6 @@ export const Primary: Story = (props: IRadioGroup) => { Option C ); -}; +};`` Primary.args = radioGroupArgs;