mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat(frontend): added storybook with tailwind integration
chore(frontend): added some required radix components
This commit is contained in:
21
frontend/.storybook/main.js
Normal file
21
frontend/.storybook/main.js
Normal 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'
|
||||
}
|
||||
};
|
||||
11
frontend/.storybook/preview.js
Normal file
11
frontend/.storybook/preview.js
Normal 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$/
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user