feat(frontend): added storybook with tailwind integration

chore(frontend): added some required radix components
This commit is contained in:
akhilmhdh
2023-01-18 23:45:54 +05:30
parent 3a6b2084bc
commit 83899bebc8
8 changed files with 24237 additions and 146 deletions

View File

@@ -0,0 +1,21 @@
const path = require('path');
module.exports = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'storybook-dark-mode',
'@storybook/addon-postcss'
],
framework: {
name: '@storybook/nextjs',
options: {}
},
core: {
disableTelemetry: true
},
docs: {
autodocs: 'tag'
}
};

View File

@@ -0,0 +1,11 @@
import '../src/styles/globals.css';
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/
}
}
};