Skip to content

Commit 1d45726

Browse files
authored
Merge pull request #179 from DaleStudy/174-storybook-designs-addon
storybook designs addon ์ถ”๊ฐ€
2 parents f805eb3 + 76bab50 commit 1d45726

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

โ€Ž.storybook/main.tsโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const config: StorybookConfig = {
1010
"@storybook/addon-a11y",
1111
"@storybook/addon-themes",
1212
"@storybook/theming",
13+
"@storybook/addon-designs",
1314
],
1415
framework: {
1516
name: "@storybook/react-vite",

โ€Žbun.lockโ€Ž

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

โ€Žpackage.jsonโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"@faker-js/faker": "^9.4.0",
3939
"@pandacss/dev": "^0.53.4",
4040
"@storybook/addon-a11y": "^8.6.12",
41+
"@storybook/addon-designs": "^8.2.1",
4142
"@storybook/addon-essentials": "^8.6.12",
4243
"@storybook/addon-interactions": "^8.6.12",
4344
"@storybook/addon-links": "^8.6.12",

โ€Žsrc/components/Button/Button.stories.tsxโ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ export default {
66
component: Button,
77
parameters: {
88
layout: "centered",
9+
design: {
10+
type: "figma",
11+
// TODO: ์ž„์‹œ url์ด๋ฏ€๋กœ button ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์™„์„ฑ๋˜๋ฉด ๊ต์ฒดํ•ด์ค„ ๊ฒƒ
12+
url: "https://www.figma.com/design/mQ2ETYC6LXGOwVETov3CgO/NoName-Design-System?node-id=11-343",
13+
},
914
},
1015
args: {
1116
children: "์‹œ์ž‘ํ•˜๊ธฐ",

0 commit comments

Comments
ย (0)