{"id":23477100,"url":"https://github.com/demozap/react-demo-tab","last_synced_at":"2025-10-24T17:15:05.396Z","repository":{"id":41101804,"uuid":"229334703","full_name":"demozap/react-demo-tab","owner":"demozap","description":"📑 Easily create React demo components","archived":false,"fork":false,"pushed_at":"2025-05-12T07:00:49.000Z","size":8814,"stargazers_count":46,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-10-13T07:38:34.539Z","etag":null,"topics":["demo-tab","demotab","react","react-demo","react-demo-tab"],"latest_commit_sha":null,"homepage":"https://demozap.github.io/react-demo-tab/","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/demozap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-12-20T20:53:21.000Z","updated_at":"2025-09-08T02:46:23.000Z","dependencies_parsed_at":"2024-06-19T17:40:07.799Z","dependency_job_id":"2754435f-bfe7-401f-8d2f-fd3dc8536e39","html_url":"https://github.com/demozap/react-demo-tab","commit_stats":{"total_commits":203,"total_committers":1,"mean_commits":203.0,"dds":0.0,"last_synced_commit":"7f9340f6a99fa5b9437af06bbe2758e624f4af5a"},"previous_names":["mkosir/react-doc-tab-template","mkosir/story-tab-react","mkosir/story-tab-template-react","demozap/react-demo-tab","mkosir/react-demo-tab"],"tags_count":57,"template":false,"template_full_name":null,"purl":"pkg:github/demozap/react-demo-tab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demozap%2Freact-demo-tab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demozap%2Freact-demo-tab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demozap%2Freact-demo-tab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demozap%2Freact-demo-tab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/demozap","download_url":"https://codeload.github.com/demozap/react-demo-tab/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demozap%2Freact-demo-tab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280833154,"owners_count":26399003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["demo-tab","demotab","react","react-demo","react-demo-tab"],"created_at":"2024-12-24T18:10:07.761Z","updated_at":"2025-10-24T17:15:05.379Z","avatar_url":"https://github.com/demozap.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React DemoTab 📑\n\n[![npm version][npm-badge]][npm-url]\n[![CI][build-badge]][build-url]\n[![semantic-release][semantic-badge]][semantic-url]\n[![TypeScript][typescript-badge]][typescript-url]\n\n_Easily create React demo components_\n\n## [Demo](https://demozap.github.io/react-demo-tab)\n\n## Install\n\n```bash\nnpm install react-demo-tab\n```\n\n## Example\n\n[![](misc/demo-tab.gif)](https://demozap.github.io/react-demo-tab/?path=/story/examples--button-green)\n\n```jsx\nimport ReactDOM from 'react-dom';\nimport DemoTab from 'react-demo-tab';\nimport DemoComponent from './ButtonGreen';\n\nconst demoCode = `\nimport './ButtonGreen.css';\n\nconst ButtonGreen = () =\u003e \u003cbutton className=\"btn-green\"\u003eGreen Button\u003c/button\u003e;\nexport default ButtonGreen;`;\n\nconst demoStyle = `\n.btn-green {\n  background-color: green;\n  font-size: 14px;\n  padding: 12px 26px;\n  border-radius: 6px;\n}`;\n\nconst App = () =\u003e {\n  return (\n    \u003cDemoTab code={demoCode} style={demoStyle}\u003e\n      \u003cDemoComponent /\u003e\n    \u003c/DemoTab\u003e\n  );\n};\n\nReactDOM.render(\u003cApp /\u003e, document.getElementById('root'));\n```\n\n## Props\n\nCreate demo of component that is passed as a child.\n\nBelow is the complete list of possible props and their options:\n\n\u003e ▶︎ indicates optional prop with default value\n\n**code**: string  \nDemo code. Required.\n\n**style**: string ▶︎ `undefined`  \nDemo style.\n\n**codeExt**: 'jsx' | 'tsx' ▶︎ `jsx`  \nCode file extension for image to be displayed.\n\n**styleExt**: 'css' | 'scss' ▶︎ `css`  \nStyle file extension for image to be displayed.\n\n## Create demos with CLI\n\nInstead of manually creating demos, automate the process with [DemoZap CLI](https://github.com/demozap/demozap).\n\n## Development\n\n_Easily set up a local development environment!_\n\nBuild project and start storybook on [localhost](http://localhost:9009):\n\n- clone\n- `npm install`\n- `npm start`\n\n**Start coding!** 🎉\n\n## Built with DemoTab\n\n- [React Tilt](https://github.com/mkosir/react-parallax-tilt) - [DemoTab](https://mkosir.github.io/react-parallax-tilt)\n- [Mighty Mouse](https://github.com/mkosir/react-hook-mighty-mouse) - [DemoTab](https://mkosir.github.io/react-hook-mighty-mouse)\n- [Magnetic Board](https://github.com/mkosir/react-magnetic-board) - [DemoTab](https://mkosir.github.io/react-magnetic-board)\n\n## Contributing\n\nAll contributions are welcome!\n\n[npm-url]: https://www.npmjs.com/package/react-demo-tab\n[npm-badge]: https://img.shields.io/npm/v/react-demo-tab.svg\n[build-badge]: https://github.com/demozap/react-demo-tab/actions/workflows/main.yml/badge.svg\n[build-url]: https://github.com/demozap/react-demo-tab/actions/workflows/main.yml\n[semantic-badge]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-url]: https://github.com/semantic-release/semantic-release\n[typescript-badge]: https://badges.frapsoft.com/typescript/code/typescript.svg?v=101\n[typescript-url]: https://github.com/microsoft/TypeScript\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemozap%2Freact-demo-tab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemozap%2Freact-demo-tab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemozap%2Freact-demo-tab/lists"}