We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48e4277 commit 72696a3Copy full SHA for 72696a3
.storybook/main.ts
@@ -1,4 +1,5 @@
1
import path from 'path';
2
+
3
import type { StorybookConfig } from '@storybook/nextjs';
4
5
const config: StorybookConfig = {
.storybook/preview.ts .storybook/preview.tsx
@@ -1,5 +1,8 @@
import '../src/app/index.css';
+import React from 'react';
+import { Toaster } from 'sonner';
6
import type { Preview } from '@storybook/react';
7
8
const preview: Preview = {
@@ -11,6 +14,14 @@ const preview: Preview = {
11
14
},
12
15
13
16
17
+ decorators: [
18
+ (Story) => (
19
+ <>
20
+ <Story />
21
+ <Toaster />
22
+ </>
23
+ ),
24
+ ],
25
};
26
27
export default preview;
0 commit comments