Skip to content

Commit 45ea8c5

Browse files
authored
feat: Figma in Storybook (#51)
1 parent 5073629 commit 45ea8c5

File tree

4 files changed

+117
-1
lines changed

4 files changed

+117
-1
lines changed

.storybook/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const config: StorybookConfig = {
1212
'@storybook/addon-links',
1313
'@storybook/addon-essentials',
1414
'@storybook/addon-interactions',
15+
'storybook-addon-designs',
1516
],
1617
framework: {
1718
name: '@storybook/react-webpack5',

package-lock.json

Lines changed: 107 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
@@ -111,6 +111,7 @@
111111
"react": "^18.2.0",
112112
"react-dom": "^18.2.0",
113113
"storybook": "^7.0.2",
114+
"storybook-addon-designs": "^7.0.0-beta.2",
114115
"ts-jest": "^29.1.0",
115116
"tsc-alias": "^1.8.5",
116117
"tsconfig-paths-webpack-plugin": "^4.0.1",

src/lib/components/DeviceManager/DeviceManager.stories.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,11 @@ type Story = StoryObj<typeof DeviceManager>
2020
* # List of devices
2121
* This is a list of devices.
2222
*/
23-
export const Devices: Story = {}
23+
export const Devices: Story = {
24+
parameters: {
25+
design: {
26+
type: 'figma',
27+
url: 'https://www.figma.com/file/Su3VO6yupz4yxe88fv0Uqa/Out-of-the-box-Components?node-id=358-43308&t=nQzUZZTb5FddESkl-4',
28+
},
29+
},
30+
}

0 commit comments

Comments
 (0)