Skip to content

Commit

Permalink
chore: normalize storybook preview
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Feb 23, 2024
1 parent b7a9a55 commit 3bb5069
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
import { DevTools } from "jotai-devtools";
import React from "react";
import { type Preview } from "@storybook/react";

export const parameters = {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
export default {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
options: {
storySort: {
order: ["Intro", "*", "Changelog"],
options: {
storySort: {
order: ["Intro", "*", "Changelog"],
},
},
},
docs: {
toc: {
headingSelector: "h2, h3",
docs: {
toc: {
headingSelector: "h2, h3",
},
},
},
};

export const decorators = [
(Story) => (
<>
<DevTools />
<Story />
</>
),
];
decorators: [
(Story) => (
<>
<DevTools />
<Story />
</>
),
],
} satisfies Preview;

0 comments on commit 3bb5069

Please sign in to comment.