{"id":18428105,"url":"https://github.com/airtoxin/react-showcase","last_synced_at":"2026-03-12T14:38:50.607Z","repository":{"id":51710024,"uuid":"64538817","full_name":"airtoxin/react-showcase","owner":"airtoxin","description":"Make it easy to create your own react component showcase site.","archived":false,"fork":false,"pushed_at":"2023-01-25T08:11:57.000Z","size":628,"stargazers_count":5,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T13:07:55.689Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/airtoxin.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}},"created_at":"2016-07-30T10:26:36.000Z","updated_at":"2023-03-09T03:04:35.000Z","dependencies_parsed_at":"2023-02-14T05:46:05.619Z","dependency_job_id":null,"html_url":"https://github.com/airtoxin/react-showcase","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airtoxin%2Freact-showcase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airtoxin%2Freact-showcase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airtoxin%2Freact-showcase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/airtoxin%2Freact-showcase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/airtoxin","download_url":"https://codeload.github.com/airtoxin/react-showcase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526743,"owners_count":20953143,"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","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":[],"created_at":"2024-11-06T05:12:48.263Z","updated_at":"2026-03-12T14:38:45.585Z","avatar_url":"https://github.com/airtoxin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-showcase [![Build Status](https://travis-ci.org/airtoxin/react-showcase.svg?branch=master)](https://travis-ci.org/airtoxin/react-showcase)\n\nMake it easy to create your own react component showcase site.\n\n## Install\n\n`$ npm install --save react-showcase`\n\n## Usage\n\n```js\nimport showcase from 'react-showcase';\n\nconst myComponents = [Input, Button];\nconst showcases = myComponents.map(Component =\u003e {\n  const Showcase = showcase(Component);\n  reutrn \u003cShowcase key={Component.name}/\u003e\n});\n\nfunction App() {\n  return \u003cdiv\u003e{showcases}\u003c/div\u003e\n}\n\nReactDOM.render(\u003cApp /\u003e, document.getElementById('showcase'));\n```\n\nIt shows...\n\n![showcaseView.png](showcaseView.png)\n\n## Api\n\n### `showcase(Component)` function (default exported)\n\n__return__: `Showcase` component\n\nThis function returns your `Component` wrapped by `Showcase` component.\n\n### `defaultStyles` object (named exported)\n\nIf you want to override showcase component styles, this can be used for base styling.\n\n### `Showcase` component\n\n`\u003cShowcase styles={myStyles} /\u003e`\n\nIt has styles property to override showcase styles.\n\n```js\nimport { defaultStyles } from \"react-showcase\";\n\nconst myStyles = Object.assign({}, defaultStyles, {\n  article: { border: \"dashed 2px red\" }\n});\n\nconst Wrapped = showcase(MyComponent);\nReactDOM.render(\n  \u003cWrapped styles={myStyles} /\u003e,\n  document.getElementById(\"showcase\")\n);\n```\n\n![](styledShowcase.png)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairtoxin%2Freact-showcase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fairtoxin%2Freact-showcase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fairtoxin%2Freact-showcase/lists"}