waveterm/.storybook/preview.tsx

33 lines
747 B
TypeScript
Raw Permalink 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";
2024-09-20 03:55:28 +02:00
import "../frontend/app/theme.less";
import "../frontend/app/app.less";
import "../frontend/app/reset.less";
2024-05-25 02:44:41 +02:00
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;