Skip to content

Commit

Permalink
feat(Tab): 스토리북으로 translator 동작 확인을 위한 args 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
suwonthugger committed Sep 28, 2024
1 parent 26041c7 commit d4fde33
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions apps/docs/src/stories/Tab.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import type { Meta, StoryObj } from "@storybook/react";
import { Tab } from "@sopt-makers/ui";
import type { Meta, StoryObj } from '@storybook/react';
import { Tab } from '@sopt-makers/ui';

const meta = {
title: "Components/Tab",
title: 'Components/Tab',
component: Tab,
tags: ["autodocs"],
tags: ['autodocs'],
args: {
tabItems: ['Tab1', 'Tab2', 'Tab3'],
selectedInitial: 'Tab1',
translator: { Tab1: '탭1', Tab2: '탭2', Tab3: '탭3' },
},
argTypes: {
style: { control: 'radio', options: ['primary', 'secondary'] },
size: { control: 'radio', options: ['sm', 'md', 'lg'] },
selectedInitial: { control: 'select', options: ['Tab1', 'Tab2', 'Tab3'] },
}
},
} as Meta<typeof Tab>;

export default meta;
Expand Down

0 comments on commit d4fde33

Please sign in to comment.