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
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
8
+
constmeta={
9
+
title: 'Example/Button',
10
+
component: Button,
11
+
parameters: {
12
+
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
13
+
layout: 'centered',
14
+
},
15
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
16
+
tags: ['autodocs'],
17
+
// More on argTypes: https://storybook.js.org/docs/api/argtypes
18
+
argTypes: {
19
+
backgroundColor: {control: 'color'},
20
+
},
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
+
args: {onClick: fn()},
23
+
}satisfiesMeta<typeofButton>;
24
+
25
+
exportdefaultmeta;
26
+
typeStory=StoryObj<typeofmeta>;
27
+
28
+
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
`[@storybook/addon-onboarding] It seems like you have finished the onboarding experience in Storybook! Therefore this addon is not necessary anymore and will not be loaded. You are free to remove it from your project. More info: https://github.com/storybookjs/storybook/tree/next/code/addons/onboarding#uninstalling`
28
-
);
29
-
return;
30
-
}
31
-
32
-
if(!isOnboarding||window.innerWidth<730){
33
-
return;
34
-
}
35
-
36
-
api.togglePanel(true);
37
-
api.togglePanelPosition('bottom');
38
-
api.setSelectedPanel(ADDON_CONTROLS_ID);
39
-
40
-
// Add a new DOM element to document.body, where we will bootstrap our React app
`[@storybook/addon-onboarding] It seems like you have finished the onboarding experience in Storybook! Therefore this addon is not necessary anymore and will not be loaded. You are free to remove it from your project. More info: https://github.com/storybookjs/storybook/tree/next/code/addons/onboarding#uninstalling`
0 commit comments