waveterm/.storybook/preview.tsx

30 lines
638 B
TypeScript
Raw Normal View History

2024-05-25 02:44:41 +02:00
// organize-imports-ignore
import type { Preview } from "@storybook/react";
import React from "react";
import { DndProvider } from "react-dnd";
import { HTML5Backend } from "react-dnd-html5-backend";
import "./global.css";
const preview: Preview = {
2024-05-28 21:12:28 +02:00
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
2024-06-14 04:50:27 +02:00
2024-05-28 21:12:28 +02:00
decorators: [
(Story) => (
<DndProvider backend={HTML5Backend}>
<Story />
</DndProvider>
),
],
2024-06-14 04:50:27 +02:00
2024-06-26 21:26:27 +02:00
tags: ["autodocs"],
2024-05-25 02:44:41 +02:00
};
export default preview;