A Storybook addon that enables inspection and documentation of Axios network requests within Storybook stories. Current stable version is 2.2.1, with a moderate release cadence of roughly monthly patches. It integrates seamlessly with Storybook 10.x and Axios 1.x. Unlike generic network logging addons, this one is tightly coupled with Axios, providing request/response previews, headers, and timing directly in the Storybook panel. Requires React 18+ and Storybook 10.1.4+. It is ESM-only and does not support CommonJS.
npm install storybook-axiosNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure Storybook addon and use decorator to inspect Axios calls in stories.
Upgrade Storybook to v10.1.4 or later.
Use import syntax and ensure your project is ESM.
Replace 'AxiosInterceptor' with 'AxiosInspector' in imports.
Ensure Axios calls are made within the story's render function or decorator context.
Install axios@1.12.2 in your project.
Set 'type': 'module' in your package.json or use a dynamic import.
Use import { withAxios } from 'storybook-axios' instead of require.Add 'storybook-axios' to the addons array in .storybook/main.(js|ts|cjs|mjs).