Skip to content

Commit

Permalink
chore: write story for button
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Apr 27, 2024
1 parent 65ca7e1 commit 603d318
Show file tree
Hide file tree
Showing 6 changed files with 360 additions and 346 deletions.
19 changes: 0 additions & 19 deletions .storybook/main.js

This file was deleted.

45 changes: 45 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import path from 'node:path';

import type { StorybookConfig } from '@storybook/react-vite';

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],

addons: [
'@storybook/addon-onboarding',
'@storybook/addon-links',
'@storybook/addon-essentials',
'@chromatic-com/storybook',
'@storybook/addon-interactions',
],

framework: {
name: '@storybook/react-vite',
options: {},
},

docs: {
autodocs: 'tag',
},

viteFinal(config) {
return {
...config,

define: {
'process.env.NODE_DEBUG': false,
},

resolve: {
alias: [
{
find: '@',
replacement: path.resolve(__dirname, '../src'),
},
],
},
}
}
};

export default config;
7 changes: 5 additions & 2 deletions .storybook/preview.js → .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/** @type { import('@storybook/react').Preview } */
const preview = {
import '../src/styles/global.css';

import type { Preview } from '@storybook/react';

const preview: Preview = {
parameters: {
controls: {
matchers: {
Expand Down
Loading

0 comments on commit 603d318

Please sign in to comment.