refactor: use storybook v7 (#951)
This commit is contained in:
1 parent
2fdbb1909d
commit
a47b612a2c
16 files changed
+1895
-5565
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import React from 'react';
|
||||
import { getLightTheme, ThemeProvider } from '../src';
|
||||
|
||||
export const parameters = {
|
||||
actions: { argTypesRegex: '^on[A-Z].*' },
|
||||
controls: {
|
||||
matchers: {
|
||||
color: /(background|color)$/i,
|
||||
date: /Date$/,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const lightTheme = getLightTheme('page');
|
||||
|
||||
export const decorators = [
|
||||
(Story: React.ComponentType) => {
|
||||
return (
|
||||
<ThemeProvider theme={lightTheme}>
|
||||
<Story />
|
||||
</ThemeProvider>
|
||||
);
|
||||
},
|
||||
];
|
||||
Reference in new issue
Block a user