storybook/docs/snippets/common/storybook-preview-enable-toc.ts.mdx
2023-07-13 15:30:42 +01:00

17 lines
319 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: {
docs: {
toc: true, // 👈 Enables the table of contents
},
},
};
export default preview;
```