Skip to content

Commit

Permalink
docs(storybook/header): add header nav link button
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarabi619 committed Sep 19, 2024
1 parent 4819e11 commit 57e1601
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/components/layout/header/header-nav-link-button.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import type { Meta, StoryObj } from '@storybook/react'
import { fn } from '@storybook/test'

import { HeaderNavLinkButton } from './header-nav-link-button.tsx'

const meta = {
title: 'Website/Layout/Header/HeaderNavLinkButton',
component: HeaderNavLinkButton,
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
tags: ['autodocs'],
parameters: {
// More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
layout: 'centered',
},
} satisfies Meta<typeof Header>

export default meta

type Story = StoryObj<typeof meta>

export const Home: Story = {
args: { name: 'Home', path: '#home', onCloseMenu: fn() },
}

export const About: Story = {
args: { name: 'About', path: '#about', onCloseMenu: fn() },
}

export const Patronage: Story = {
args: { name: 'Patronage', path: '#patronage', onCloseMenu: fn() },
}

export const Contact: Story = {
args: { name: 'Contact', path: '#contact', onCloseMenu: fn() },
}

0 comments on commit 57e1601

Please sign in to comment.