27 lines
517 B
TypeScript
27 lines
517 B
TypeScript
import type { Preview } from '@storybook/react-vite'
|
|
import { MantineProvider } from '@mantine/core'
|
|
import '@mantine/core/styles.css'
|
|
import '@mantine/notifications/styles.css'
|
|
|
|
const preview: Preview = {
|
|
decorators: [
|
|
(Story) => (
|
|
<MantineProvider>
|
|
<Story />
|
|
</MantineProvider>
|
|
),
|
|
],
|
|
parameters: {
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/i,
|
|
},
|
|
},
|
|
a11y: {
|
|
test: 'todo',
|
|
},
|
|
},
|
|
}
|
|
|
|
export default preview
|