You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: code/addons/onboarding/example-stories/Button.stories.tsx
+5-27Lines changed: 5 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -4,28 +4,27 @@ import { fn } from 'storybook/test';
4
4
5
5
import{Button}from'./Button';
6
6
7
-
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
8
7
constmeta={
9
8
title: 'Example/Button',
10
9
component: Button,
11
10
parameters: {
12
-
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
13
11
layout: 'centered',
12
+
parameters: {
13
+
chromatic: {
14
+
disableSnapshot: true,
15
+
},
16
+
},
14
17
},
15
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
16
18
tags: ['autodocs'],
17
-
// More on argTypes: https://storybook.js.org/docs/api/argtypes
18
19
argTypes: {
19
20
backgroundColor: {control: 'color'},
20
21
},
21
-
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args
22
22
args: {onClick: fn()},
23
23
}satisfiesMeta<typeofButton>;
24
24
25
25
exportdefaultmeta;
26
26
typeStory=StoryObj<typeofmeta>;
27
27
28
-
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
0 commit comments