Skip to content

Commit 270f611

Browse files
committed
feat: story args 추가
1 parent aa0dbfa commit 270f611

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/storybook/src/stories/Renderer.stories.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Meta, StoryObj } from '@storybook/react';
22
import { Renderer, NotionBlock } from 'notion-to-jsx';
33
import notionBlocks from '../sample-data/notionBlocks.json';
4+
import notionProperties from '../sample-data/notionProperties.json';
45

56
const meta = {
67
title: 'Components/Renderer',
@@ -29,13 +30,17 @@ export const Default: Story = {
2930
args: {
3031
blocks: notionBlocks as NotionBlock[], // JSON 파일에서 불러온 블록 데이터 사용
3132
isDarkMode: false,
33+
title: notionProperties.Name,
34+
cover: notionProperties.coverUrl,
3235
},
3336
};
3437

3538
export const DarkMode: Story = {
3639
args: {
3740
blocks: notionBlocks as NotionBlock[], // JSON 파일에서 불러온 블록 데이터 사용
3841
isDarkMode: true,
42+
title: notionProperties.Name,
43+
cover: notionProperties.coverUrl,
3944
},
4045
decorators: [
4146
(Story) => (

0 commit comments

Comments
 (0)