diff --git a/packages/smarthr-ui/src/components/TabBar/TabBar-bordered.stories.tsx b/packages/smarthr-ui/src/components/TabBar/TabBar-bordered.stories.tsx new file mode 100644 index 0000000000..c456f4a0ce --- /dev/null +++ b/packages/smarthr-ui/src/components/TabBar/TabBar-bordered.stories.tsx @@ -0,0 +1,23 @@ +import TabBarStories from './TabBar.stories' + +import type { StoryObj } from '@storybook/react' + +export default { + ...TabBarStories, + title: 'Navigation(ナビゲーション)/TabBar/bordered', + tags: ['!autodocs'], +} + +export const True: StoryObj = { + name: 'true', + args: { + bordered: true, + }, +} + +export const False = { + name: 'false', + args: { + bordered: false, + }, +} diff --git a/packages/smarthr-ui/src/components/TabBar/TabBar.stories.tsx b/packages/smarthr-ui/src/components/TabBar/TabBar.stories.tsx index 7123d85eaf..8dd0c65a84 100644 --- a/packages/smarthr-ui/src/components/TabBar/TabBar.stories.tsx +++ b/packages/smarthr-ui/src/components/TabBar/TabBar.stories.tsx @@ -1,65 +1,38 @@ import { action } from '@storybook/addon-actions' -import React, { type ComponentProps } from 'react' - -import { Heading } from '../Heading' -import { Stack } from '../Layout' +import React from 'react' import { TabBar } from './TabBar' import { TabItem } from './TabItem' -import type { Meta, StoryFn } from '@storybook/react' - -const Template: StoryFn> = (args) => ( - - - タブ1 - - - タブ2 - - -) +import type { Meta } from '@storybook/react' export default { title: 'Navigation(ナビゲーション)/TabBar', component: TabBar, subcomponents: { TabItem }, - render: Template, + render: (args) => ( + + + タブ1 + + + タブ2 + + + ), parameters: { chromatic: { disableSnapshot: true }, }, } as Meta -export const Default = () => ( - - - タブ1 - - - タブ2 - - -) - -export const Playground = { +export const Default = { args: { bordered: true, }, } -export const Boardered = { - name: 'bordered', - render: () => ( - - bordered - - 線あり(デフォルト) -