feat: Storybook for Vite (#52)

* feat: storybook

* feat: option to add figma links

* refactor: resolve pr comments

* chore: fix storybook build

---------

Co-authored-by: Sriram Hariharan <sghsri@gmail.com>
This commit is contained in:
Razboy20
2024-01-30 16:43:30 -06:00
committed by GitHub
parent 0560a01a55
commit 9cc299ced6
14 changed files with 6340 additions and 95 deletions

24
.storybook/preview.tsx Normal file
View File

@@ -0,0 +1,24 @@
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;