Skip to content

Commit

Permalink
add story
Browse files Browse the repository at this point in the history
  • Loading branch information
devjiwonchoi committed Jan 7, 2025
1 parent 18ac4ec commit 57e4e81
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import type { Meta, StoryObj } from '@storybook/react'
import { DocsLinkButton } from './docs-link-button'
import { withShadowPortal } from '../../../storybook/with-shadow-portal'

const meta: Meta<typeof DocsLinkButton> = {
title: 'ErrorOverlayToolbar/DocsLinkButton',
component: DocsLinkButton,
parameters: {
layout: 'centered',
},
decorators: [withShadowPortal],
}

export default meta
type Story = StoryObj<typeof DocsLinkButton>

export const WithDocsUrl: Story = {
args: {
errorMessage: 'Learn more at https://nextjs.org/docs',
},
}

export const WithoutDocsUrl: Story = {
args: {
errorMessage: 'An error occurred without any documentation link',
},
}

0 comments on commit 57e4e81

Please sign in to comment.