-
-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implemented the substabs list component (#3352)
- Loading branch information
1 parent
e42b43d
commit 5a55026
Showing
2 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Meta, StoryObj } from "@storybook/react"; | ||
import { SubTabsList } from "./tab-list"; | ||
|
||
type Story = StoryObj<typeof SubTabsList>; | ||
|
||
const meta: Meta<typeof SubTabsList> = { | ||
title: "Components/Shared/SubTabsList", | ||
component: SubTabsList, | ||
args: { | ||
label: "Sub Tabs Example", | ||
textSize: "regular", | ||
tabList: [ | ||
{ name: "Tab 1", path: "tab1" }, | ||
{ name: "Tab 2", path: "tab2" }, | ||
{ name: "Tab 3", path: "tab3" }, | ||
], | ||
selectedTab: "tab 1", | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Default: Story = {}; | ||
export const SmallText: Story = { | ||
args: { | ||
textSize: "small", | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters