Ghost/ghost/admin-x-settings/.storybook/preview.tsx

27 lines
534 B
TypeScript
Raw Normal View History

import React from 'react';
import '../src/styles/index.css';
import type { Preview } from "@storybook/react";
const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
decorators: [
(Story) => (
<div className="admin-x-settings">
{/* 👇 Decorators in Storybook also accept a function. Replace <Story/> with Story() to enable it */}
<Story />
</div>
),
],
};
export default preview;