mirror of
https://github.com/morten-olsen/refocus.dev.git
synced 2026-02-08 00:46:25 +01:00
25 lines
465 B
TypeScript
25 lines
465 B
TypeScript
import React from 'react';
|
|
import type { Preview } from '@storybook/react';
|
|
import { UIProvider } from '../src/theme/provider';
|
|
|
|
const preview: Preview = {
|
|
decorators: [
|
|
(Story) => (
|
|
<UIProvider>
|
|
<Story />
|
|
</UIProvider>
|
|
),
|
|
],
|
|
parameters: {
|
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/,
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export default preview;
|