{"id":18886814,"url":"https://github.com/albertfdp/react-ppt","last_synced_at":"2026-05-04T13:31:09.350Z","repository":{"id":67577471,"uuid":"115336497","full_name":"albertfdp/react-ppt","owner":"albertfdp","description":"React renderer to PowerPoint with Flexbox support","archived":false,"fork":false,"pushed_at":"2017-12-30T11:18:39.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-24T01:40:04.054Z","etag":null,"topics":["powerpoint","powerpoint-javascript-library","react","renderer"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/albertfdp.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2017-12-25T12:31:07.000Z","updated_at":"2023-03-10T08:15:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"35beacb0-38ae-4d9a-81dc-ddc920b74d2d","html_url":"https://github.com/albertfdp/react-ppt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/albertfdp/react-ppt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Freact-ppt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Freact-ppt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Freact-ppt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Freact-ppt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/albertfdp","download_url":"https://codeload.github.com/albertfdp/react-ppt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/albertfdp%2Freact-ppt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32609327,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: 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":["powerpoint","powerpoint-javascript-library","react","renderer"],"created_at":"2024-11-08T07:31:01.285Z","updated_at":"2026-05-04T13:31:09.335Z","avatar_url":"https://github.com/albertfdp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-ppt\n\n\u003e Create PowerPoint presentations with React using CSS and Flexbox layout\n\n## Introduction\n\n`react-ppt` is a library that lets you create PowerPoint presentations with React. It provides a set of low-level components which render your declarative slides and components to PowerPoint. It implements Facebook's [Yoga](https://github.com/facebook/yoga) layout engine, thus you can style the slides using `flexbox` instead of the traditional pptx libraries absolute positioning. It aims to support as much as possible `CSS` properties.\n\n`react-ppt` wraps [PptxGenJS](https://github.com/gitbrent/PptxGenJS) library, so you can refer to its documentation for the details on specific props.\n\n## Example\n\n```js\nimport React from 'react';\nimport { render, Deck, Slide, Text } from 'react-ppt';\n\nconst App = () =\u003e (\n  \u003cDeck author=\"Me\"\u003e\n    \u003cSlide\n      style={{\n        backgroundColor: '#e3b143'\n        flexGrow: 1,\n        justifyContent: 'center',\n        alignItems: 'center'\n      }}\n    \u003e\n      \u003cText style={{ color: \"black\" }}\u003eHello World\u003c/Text\u003e\n    \u003c/Slide\u003e\n  \u003c/Deck\u003e\n);\n\nrender(\u003cApp /\u003e, 'example.ppt');\n```\n\n## Install\n\n```bash\n$ npm install --save react react-pptx\n```\n\n## Usage\n\n* Create a `.babelrc`\n\n```json\n{\n  \"presets\": [\"env\", \"react\"]\n}\n```\n\nAfter configuring [babel](https://github.com/babel/babel) you can run the example in [Example](#example).\n\n## Components\n\n### Deck\n\n```js\n\u003cDeck\n  author=\"Author\"\n  company=\"Company\"\n  revision=\"10\"\n  subject=\"Deck\"\n  title=\"Presentation\"\n  dir=\"ltr\"\n  layout={{ name: 'Foo', width: 300, height: 200 }}\n/\u003e\n```\n\n| Prop       | Type             | Default | Options                                                                          |\n| :--------- | :--------------- | :------ | :------------------------------------------------------------------------------- |\n| `author`   | string           |         |                                                                                  |\n| `company`  | string           |         |                                                                                  |\n| `revision` | string           |         |                                                                                  |\n| `subject`  | string           |         |                                                                                  |\n| `title`    | string           |         |                                                                                  |\n| `dir`      | string           | `ltr`   |                                                                                  |\n| `layout`   | string or object | `16x9`  | `16x9`, `16x10`, `4x3`, `wide`, `{ name: string, width: number, height: number}` |\n\n[More info](https://github.com/gitbrent/PptxGenJS/blob/master/README.md#presentation-properties)\n\n### Slide\n\n```js\n\u003cSlide\n  number={{\n    x: '30%'\n    y: '50%',\n    color: 'blue',\n    fontFace: 'Comic Sans',\n    fontSize: 10\n  }}\n  style={{\n    backgroundColor: 'red',\n    color: 'black',\n    flexGrow: 1\n  }}\n/\u003e\n```\n\n| Prop     | Type   | Default | Options                |\n| :------- | :----- | :------ | :--------------------- |\n| `number` | object |         | See below              |\n| `style`  | object | {}      | See StyleSheet section |\n\n`number` props:\n\n| Prop       | Type             | Default | Examples                           |\n| :--------- | :--------------- | :------ | :--------------------------------- |\n| `x`        | string or number |         | `10`, `10%`                        |\n| `y`        | string or number |         | `10`, `10%`                        |\n| `color`    | string           |         | `#000000`, `black`, `rgb(0, 0, 0)` |\n| `fontFace` | string           |         | `Comic Sans`                       |\n| `fontSize` | number           |         | `10`                               |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertfdp%2Freact-ppt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falbertfdp%2Freact-ppt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falbertfdp%2Freact-ppt/lists"}