docs/_snippets/react-framework-options-legacy-root-api.md
// Replace your-framework with the framework you are using (e.g., nextjs, react-webpack5)
import type { StorybookConfig } from '@storybook/your-framework';
const config: StorybookConfig = {
framework: {
name: '@storybook/your-framework',
options: {
legacyRootApi: true,
},
},
};
export default config;
export default {
framework: {
// Replace your-framework with the framework you are using (e.g., nextjs, react-webpack5)
name: '@storybook/your-framework',
options: {
legacyRootApi: true,
},
},
};
// Replace your-framework with the framework you are using (e.g., nextjs, react-webpack5)
import { defineMain } from '@storybook/your-framework/node';
const config = defineMain({
framework: {
name: '@storybook/your-framework',
options: {
legacyRootApi: true,
},
},
});
export default config;
// Replace your-framework with the framework you are using (e.g., nextjs, react-webpack5)
import { defineMain } from '@storybook/your-framework/node';
const config = defineMain({
framework: {
name: '@storybook/your-framework',
options: {
legacyRootApi: true,
},
},
});
export default config;