dappconnect-chat-sdk/packages/components/.storybook/preview.tsx

24 lines
471 B
TypeScript

import { Provider } from '../src'
import { Parameters, Decorator } from '@storybook/react'
import './reset.css'
export const parameters: Parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
const withThemeProvider: Decorator = (Story, _context) => {
return (
<Provider>
<Story />
</Provider>
)
}
export const decorators = [withThemeProvider]