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

23 lines
467 B
TypeScript
Raw Normal View History

2023-01-10 11:24:24 +00:00
import React from 'react'
import { TamaguiProvider } from '@tamagui/core'
import { config } from '../src'
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/
}
}
}
const withThemeProvider = (Story, context) => {
return (
<TamaguiProvider config={config}>
<Story />
</TamaguiProvider>
)
}
export const decorators = [withThemeProvider]