28 lines
647 B
TypeScript
28 lines
647 B
TypeScript
import type { Preview } from "@storybook/react";
|
|
import { CustomizationDecorator } from "../stories/CustomizationDecorator";
|
|
import React from "react";
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/i,
|
|
},
|
|
},
|
|
layout: "fullscreen",
|
|
},
|
|
decorators: [
|
|
(Story) => (
|
|
<CustomizationDecorator>
|
|
<div style={{ padding: "20px", backgroundColor: "#f5f5f5", minHeight: "100vh" }}>
|
|
<Story />
|
|
</div>
|
|
</CustomizationDecorator>
|
|
),
|
|
],
|
|
};
|
|
|
|
export default preview;
|