2023-05-23 15:58:33 +03:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import type { Preview } from "@storybook/react";
|
2023-06-01 02:22:43 +03:00
|
|
|
import './storybook.css';
|
2023-05-23 15:58:33 +03:00
|
|
|
|
|
|
|
const preview: Preview = {
|
|
|
|
parameters: {
|
|
|
|
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
|
|
controls: {
|
|
|
|
matchers: {
|
|
|
|
color: /(background|color)$/i,
|
|
|
|
date: /Date$/,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
options: {
|
|
|
|
storySort: {
|
|
|
|
order: ['Global', 'Settings', 'Experimental'],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
decorators: [
|
|
|
|
(Story) => (
|
2023-06-01 02:22:43 +03:00
|
|
|
<div className="signup-form" style={{padding: '24px'}}>
|
2023-05-23 15:58:33 +03:00
|
|
|
{/* 👇 Decorators in Storybook also accept a function. Replace <Story/> with Story() to enable it */}
|
|
|
|
<Story />
|
|
|
|
</div>
|
|
|
|
),
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
export default preview;
|