2024-07-12 04:52:31 -05:00
|
|
|
import { withThemeByClassName } from "@storybook/addon-themes";
|
|
|
|
|
|
|
|
export const decorators = [
|
|
|
|
withThemeByClassName({
|
|
|
|
themes: {
|
|
|
|
light: "light",
|
|
|
|
dark: "default",
|
|
|
|
},
|
|
|
|
defaultTheme: "dark",
|
|
|
|
parentSelector: "body",
|
|
|
|
}),
|
|
|
|
];
|
|
|
|
|
2023-11-24 06:24:47 -05:00
|
|
|
/** @type { import('@storybook/react').Preview } */
|
|
|
|
const preview = {
|
2024-07-12 04:52:31 -05:00
|
|
|
decorators: decorators,
|
2023-11-24 06:24:47 -05:00
|
|
|
parameters: {
|
|
|
|
controls: {
|
|
|
|
matchers: {
|
|
|
|
color: /(background|color)$/i,
|
|
|
|
date: /Date$/i,
|
|
|
|
},
|
|
|
|
},
|
2024-07-12 04:52:31 -05:00
|
|
|
backgrounds: { disable: true },
|
2023-11-24 06:24:47 -05:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export default preview;
|