* feat: unocss (wip) * feat: unocss (storybook only) * cleanup unocss config * revert button.stories.tsx changes
25 lines
503 B
TypeScript
25 lines
503 B
TypeScript
import type { Preview } from '@storybook/react';
|
|
import React from 'react';
|
|
import ExtensionRoot from 'src/views/components/common/ExtensionRoot/ExtensionRoot';
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/i,
|
|
},
|
|
},
|
|
},
|
|
decorators: [
|
|
Story => (
|
|
<ExtensionRoot>
|
|
<Story />
|
|
</ExtensionRoot>
|
|
),
|
|
],
|
|
};
|
|
|
|
export default preview;
|