{"id":40587587,"url":"https://github.com/jmarceli/storybook-addon-react-view","last_synced_at":"2026-01-21T03:08:21.845Z","repository":{"id":49960466,"uuid":"298822996","full_name":"jmarceli/storybook-addon-react-view","owner":"jmarceli","description":"https://www.npmjs.com/package/storybook-addon-react-view","archived":false,"fork":false,"pushed_at":"2021-06-07T19:01:01.000Z","size":2786,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-06T07:05:03.527Z","etag":null,"topics":["editable-story-code","interactive-code","react-view","storybook","storybook-addon"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/storybook-addon-react-view","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmarceli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-26T13:44:45.000Z","updated_at":"2023-08-06T07:05:03.528Z","dependencies_parsed_at":"2022-08-29T01:31:28.920Z","dependency_job_id":null,"html_url":"https://github.com/jmarceli/storybook-addon-react-view","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"purl":"pkg:github/jmarceli/storybook-addon-react-view","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmarceli%2Fstorybook-addon-react-view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmarceli%2Fstorybook-addon-react-view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmarceli%2Fstorybook-addon-react-view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmarceli%2Fstorybook-addon-react-view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmarceli","download_url":"https://codeload.github.com/jmarceli/storybook-addon-react-view/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmarceli%2Fstorybook-addon-react-view/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28624344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T02:47:06.670Z","status":"ssl_error","status_checked_at":"2026-01-21T02:45:44.886Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["editable-story-code","interactive-code","react-view","storybook","storybook-addon"],"created_at":"2026-01-21T03:08:21.783Z","updated_at":"2026-01-21T03:08:21.836Z","avatar_url":"https://github.com/jmarceli.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Storybook Addon React View\n\nStorybook addon which makes your story source interactive [Storybook Addon React View](https://github.com/jmarceli/storybook-addon-react-view).\n\nDemo: https://jmarceli.github.io/storybook-addon-react-view/\nDemo code: [docs-source](./docs-source)\n\n## Installation\n\nIf you need to add it to your Storybook, you can run:\n\n```sh\nnpm i -D storybook-addon-react-view\n```\n\n## Configuration\n\nThen, add following content to [`.storybook/main.js`](https://storybook.js.org/docs/react/configure/overview#configure-your-storybook-project):\n\n```js\nmodule.exports = {\n  addons: [\"storybook-addon-react-view\"],\n};\n```\n\n## Usage\n\nSimple:\n\n```jsx\nimport React from \"react\";\nimport { Component, ABC, myFun } from \"./Component\";\nimport { withReactView } from \"storybook-addon-react-view/register\";\n\nexport const ComponentStory: React.FC\u003c{}\u003e = () =\u003e (\n  \u003cComponent title=\"X\"\u003e\n    \u003cdiv\u003e{ABC}\u003c/div\u003e\n    \u003cdiv\u003e{myFun()}\u003c/div\u003e\n  \u003c/Component\u003e\n);\n\nexport default {\n  title: \"Component\",\n  component: Component,\n  decorators: [withReactView],\n  parameters: { useView: { scope: { Component } } },\n};\n```\n\nor with `@storybook/addon-docs`:\n\n```jsx\nimport React from \"react\";\nimport { Component, ABC, myFun } from \"./Component\";\nimport { withReactView } from \"storybook-addon-react-view/register\";\n\nexport const ComponentStory: React.FC\u003c{}\u003e = () =\u003e (\n  \u003cComponent title=\"X\"\u003e\n    \u003cdiv\u003e{ABC}\u003c/div\u003e\n    \u003cdiv\u003e{myFun()}\u003c/div\u003e\n  \u003c/Component\u003e\n);\n\nexport default {\n  title: \"Component\",\n  component: Component,\n  decorators: [withReactView],\n  parameters: { useView: { scope: { Component, ABC, myFun } } },\n};\n```\n\n## License\n\n[MIT](./LICENSE)\n\n## Author\n\nJan Grzegorowski\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmarceli%2Fstorybook-addon-react-view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmarceli%2Fstorybook-addon-react-view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmarceli%2Fstorybook-addon-react-view/lists"}