storybook/docs/snippets/common/storybook-preview-custom-canvas.ts.mdx
2023-03-02 22:01:15 +00:00

21 lines
359 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';
import { MyCanvas } from './MyCanvas';
const preview: Preview = {
parameters: {
docs: {
components: {
Canvas: MyCanvas,
},
},
},
};
export default preview;
```