lesson 1, chapter 2: storybook setup

This commit is contained in:
2023-07-28 14:00:44 +02:00
parent fce68243c3
commit 123e60e898
35 changed files with 6280 additions and 7 deletions

19
.storybook/preview.ts Normal file
View File

@@ -0,0 +1,19 @@
import '@fontsource/roboto/400.css'
import '@fontsource/roboto/700.css'
import '../src/styles/index.scss'
import type { Preview } from '@storybook/react'
const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
}
export default preview