{"library":"storybook-addon-mock","type":"library","category":null,"description":"A Storybook addon for mocking fetch and XMLHttpRequest requests in component stories. Version 6.0.1 requires Storybook 9.0.12+ and React 16.8+. It provides a dedicated panel to view, enable/disable, modify status codes, edit JSON responses, and add delay. Unlike other mocking libraries, it integrates directly with Storybook's UI for an interactive debugging experience. Ships TypeScript types.","language":"javascript","status":"active","version":"6.0.1","tags":["javascript","storybook","mock","http-mock","fetch-mock","xhr-mock","mock-data","storybook-addon","data-state","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install storybook-addon-mock","imports":["import { withMock } from 'storybook-addon-mock'","import type { MockPayload } from 'storybook-addon-mock'","import type { MockResponse } from 'storybook-addon-mock'"]},{"cmd":"yarn add storybook-addon-mock","imports":[]},{"cmd":"pnpm add storybook-addon-mock","imports":[]}],"homepage":"https://github.com/nutboltu/storybook-addon-mock#readme","github":"https://github.com/nutboltu/storybook-addon-mock","docs":null,"changelog":null,"pypi":null,"npm":"storybook-addon-mock","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}