{"id":14483535,"url":"https://github.com/pocka/figspec-react","last_synced_at":"2025-10-29T07:33:02.200Z","repository":{"id":60774760,"uuid":"500902844","full_name":"pocka/figspec-react","owner":"pocka","description":"React binding for Figspec web components","archived":false,"fork":false,"pushed_at":"2023-09-06T07:49:37.000Z","size":1732,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-02T00:01:33.452Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/pocka.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2022-06-07T15:42:18.000Z","updated_at":"2024-05-23T02:47:29.914Z","dependencies_parsed_at":"2024-05-23T02:47:13.219Z","dependency_job_id":"2bf808ee-bbd2-44b4-beb7-88fc7eaedc40","html_url":"https://github.com/pocka/figspec-react","commit_stats":{"total_commits":114,"total_committers":4,"mean_commits":28.5,"dds":0.1842105263157895,"last_synced_commit":"495f0b54b937f028aadd60bc9078e58c90edbb86"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocka%2Ffigspec-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocka%2Ffigspec-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocka%2Ffigspec-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pocka%2Ffigspec-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pocka","download_url":"https://codeload.github.com/pocka/figspec-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219868711,"owners_count":16555613,"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-09-03T00:01:50.714Z","updated_at":"2025-10-29T07:32:56.658Z","avatar_url":"https://github.com/pocka.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# @figspec/react\n\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![npm](https://img.shields.io/npm/v/@figspec/react?label=%40figspec%2Freact)](https://www.npmjs.com/package/@figspec/react)\n\nA React binding for [`@figspec/components`](https://github.com/pocka/figspec).\n\n## Installation\n\n```sh\n# npm\n$ npm i @figspec/react\n\n# Yarn\n$ yarn add @figspec/react\n\n# pnpm\n$ pnpm add @figspec/react\n```\n\n## Usage\n\nSee the docs at `@figspec/components`.\n\nThis bindings enables you to use the CustomElement's property via React's component props.\nYou don't need to use kebab-case attributes :camel::dash:\n\n```jsx\nimport { FigspecViewer } from \"@figspec/react\";\n\nconst logSelectedNode = (ev) =\u003e {\n  console.log(ev.detail.selectedNode);\n};\n\n\u003cFigspecFrameViewer\n  nodes={nodes}\n  renderedImage={renderedImage}\n  zoomMargin={200}\n  onNodeSelect={logSelectedNode}\n/\u003e;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocka%2Ffigspec-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpocka%2Ffigspec-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpocka%2Ffigspec-react/lists"}