* feat: storybook * feat: option to add figma links * refactor: resolve pr comments * chore: fix storybook build --------- Co-authored-by: Sriram Hariharan <sghsri@gmail.com>
25 lines
503 B
TypeScript
25 lines
503 B
TypeScript
import ExtensionRoot from 'src/views/components/common/ExtensionRoot/ExtensionRoot';
|
|
import type { Preview } from '@storybook/react';
|
|
import React from 'react';
|
|
|
|
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;
|