Skip to content

Commit eb8bf0e

Browse files
committed
Combined two preview files
1 parent 980f535 commit eb8bf0e

2 files changed

Lines changed: 19 additions & 22 deletions

File tree

‎.storybook/preview.ts‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

‎.storybook/preview.tsx‎

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
import React from 'react';
22
import type { Preview, Decorator } from '@storybook/react';
3-
import preview from './preview';
3+
import './style.css';
4+
5+
// Storybook parameters
6+
const preview: Preview = {
7+
parameters: {
8+
controls: {
9+
matchers: {
10+
color: /(background|color)$/i,
11+
date: /Date$/,
12+
},
13+
},
14+
options: {
15+
storySort: {
16+
order: ['Intro', 'Layers', 'Controls', 'Interactions'],
17+
},
18+
},
19+
},
20+
};
421

522
// Wrap all stories in React.StrictMode
623
export const decorators: Decorator[] = [
@@ -11,5 +28,5 @@ export const decorators: Decorator[] = [
1128
),
1229
];
1330

14-
export * from './preview';
31+
// Provides Storybook with your global config.
1532
export default preview;

0 commit comments

Comments
 (0)