Skip to content

Commit

Permalink
refactor: migrate back from Ladle to Storybook (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
moonayyur authored May 25, 2023
1 parent b36086e commit 454dc7f
Show file tree
Hide file tree
Showing 11 changed files with 9,510 additions and 4,883 deletions.
19 changes: 0 additions & 19 deletions .ladle/components.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions .ladle/config.mjs

This file was deleted.

16 changes: 16 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { StorybookConfig } from '@storybook/react-vite';
const config: StorybookConfig = {
stories: ['../stories/**/*.stories.@(js|jsx|ts|tsx)'],
core: {},
addons: ['@storybook/addon-essentials'],
framework: {
name: '@storybook/react-vite',
options: {
strictMode: false,
},
},
docs: {
autodocs: 'tag',
},
};
export default config;
19 changes: 19 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { Preview } from '@storybook/react';
import { RootLayoutDecorator } from '../stories/utils';

import '../src/styles/storybook-globals.css';

const preview: Preview = {
decorators: [RootLayoutDecorator],
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
};

export default preview;
Loading

0 comments on commit 454dc7f

Please sign in to comment.