storybook/docs/snippets/common/storybook-addon-controls-custom-matchers.ts.mdx
2023-03-02 22:01:15 +00:00

20 lines
357 B
Plaintext

```ts
// .storybook/preview.ts
// Replace your-framework with the framework you are using (e.g., react, vue3)
import { Preview } from '@storybook/your-framework';
const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
};
export default preview;
```