storybook/docs/snippets/common/storybook-main-enable-interactive-debugger.js.mdx
2022-04-29 00:17:54 +08:00

14 lines
338 B
Plaintext

```js
// .storybook/main.js|ts
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
// Other Storybook addons
'@storybook/addon-interactions', // 👈 Addon is registered here
],
features: {
interactionsDebugger: true, // 👈 Enable playback controls
},
};
```