buster/web/.storybook/preview.tsx

29 lines
562 B
TypeScript
Raw Normal View History

2025-02-22 07:05:50 +08:00
import React from 'react';
2025-02-22 05:13:15 +08:00
import type { Preview } from '@storybook/react';
2025-02-22 07:05:50 +08:00
import { BusterStyleProvider } from '../src/context/BusterStyles/BusterStyles';
2025-02-22 05:13:15 +08:00
import '../src/styles/styles.scss';
const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i
}
}
2025-02-22 07:05:50 +08:00
},
decorators: [
(Story) => {
return (
2025-02-25 08:40:29 +08:00
<div>
<BusterStyleProvider>
<Story />
</BusterStyleProvider>
</div>
2025-02-22 07:05:50 +08:00
);
}
]
2025-02-22 05:13:15 +08:00
};
export default preview;