Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | import type { Meta, StoryObj } from '@storybook/react'; import ErrorResult from './ErrorResult'; const meta = { title: 'COMPONENTS/error/ErrorResult', component: ErrorResult, parameters: { layout: 'fullscreen', }, } satisfies Meta<typeof ErrorResult>; export default meta; type Story = StoryObj<typeof meta>; export const Primary: Story = { args: { result: { code: 'storybook/sample-error', message: 'SampleError: This is sample error for storybook.', }, }, }; |