Storybook has built-in Typescript support, so your Typescript project should work with zero configuration needed.
Each framework uses the base configuration unless otherwise specified:
ts-loaderand applies it to both
react-docgen-typescript-pluginto the base.
To make it easier to configure Typescript handling, use the
typescript field in your
The following code snippets shows the fields for you to use with TypeScript:
|check||All||Optionally run fork-ts-checker-webpack-plugin||boolean|
|checkOptions||All||Options to pass to fork-ts-checker-webpack-plugin if it's enabled||See Docs|
|reactDocgen||React||Which react docgen processor to run: ||string or false|
|reactDocgenTypescriptOptions||React||Options to pass to react-docgen-typescript-plugin if react-docgen-typescript is enabled.||See docs|
The configuration provided above will remove any props from any third party libraries.
If it's required you can adjust the configuration and include the extra props.
Adjust the configuration as shown below and any third party props will be displayed as soon as you restart your Storybook.
Next time you restart your Storybook the extra props will also be in the UI.