-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
555f731
commit bc2b59f
Showing
5 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,61 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import folderImageUrl from "../../assets/folder.svg"; | ||
import homeImageUrl from "../../assets/home.svg"; | ||
import Navbar from "."; | ||
|
||
const meta = { | ||
title: "Client/Navbar", | ||
component: Navbar, | ||
tags: ["autodocs"], | ||
parameters: { | ||
componentSubtitle: "Navbar 컴포넌트", | ||
}, | ||
argTypes: { | ||
imageUrl: { | ||
control: false, | ||
}, | ||
}, | ||
} satisfies Meta<typeof Navbar>; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
args: { | ||
href: "studies", | ||
imageUrl: homeImageUrl, | ||
alt: "home-icon", | ||
name: "개설된 스터디", | ||
}, | ||
}; | ||
|
||
export const WithSubItems: Story = { | ||
args: { | ||
href: "studies", | ||
imageUrl: homeImageUrl, | ||
alt: "home-icon", | ||
name: "개설된 스터디", | ||
items: [ | ||
{ | ||
href: "basic-web-study", | ||
imageUrl: folderImageUrl, | ||
alt: "folder-icon", | ||
name: "기초 웹 스터디", | ||
}, | ||
{ | ||
href: "dev-beginner-study", | ||
imageUrl: folderImageUrl, | ||
alt: "folder-icon", | ||
name: "개발 입문 스터디", | ||
}, | ||
{ | ||
href: "basic-mobile-study", | ||
imageUrl: folderImageUrl, | ||
alt: "folder-icon", | ||
name: "기초 모바일 스터디", | ||
}, | ||
], | ||
}, | ||
}; |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
export { default as NavItem } from "./NavItem"; | ||
export { default as NavItem } from "."; |