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
{{ message }}
This repository was archived by the owner on Feb 10, 2025. It is now read-only.
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
7
7
constmeta={
8
-
title: 'Example/Button',
8
+
title: "Example/Button",
9
9
component: Button,
10
10
parameters: {
11
11
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/configure/story-layout
12
-
layout: 'centered',
12
+
layout: "centered",
13
13
},
14
14
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
15
-
tags: ['autodocs'],
15
+
tags: ["autodocs"],
16
16
// More on argTypes: https://storybook.js.org/docs/api/argtypes
17
17
argTypes: {
18
-
backgroundColor: {control: 'color'},
18
+
backgroundColor: {control: "color"},
19
19
},
20
20
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
21
21
args: {onClick: fn()},
@@ -28,26 +28,26 @@ type Story = StoryObj<typeof meta>;
Because Storybook works separately from your app, you'll need to configure it for your specific stack and setup. Below, explore guides for configuring Storybook with popular frameworks and tools. If you get stuck, learn how you can ask for help from our community.
Now that you know the basics, let's explore other parts of Storybook that will improve your experience. This list is just to get you started. You can customise Storybook in many ways to fit your needs.
0 commit comments