diff --git a/code/frameworks/react-vite/src/types.ts b/code/frameworks/react-vite/src/types.ts index 3cbd1f5c6f2a..fa3e8dec5b24 100644 --- a/code/frameworks/react-vite/src/types.ts +++ b/code/frameworks/react-vite/src/types.ts @@ -10,6 +10,15 @@ type BuilderName = '@storybook/builder-vite'; export type FrameworkOptions = { builder?: BuilderOptions; + strictMode?: boolean; + /** + * Use React's legacy root API to mount components + * @description + * React has introduced a new root API with React 18.x to enable a whole set of new features (e.g. concurrent features) + * If this flag is true, the legacy Root API is used to mount components to make it easier to migrate step by step to React 18. + * @default false + */ + legacyRootApi?: boolean; }; type StorybookConfigFramework = {