{"id":15827482,"url":"https://github.com/obss/react-curved-text","last_synced_at":"2025-05-13T00:49:34.249Z","repository":{"id":101387324,"uuid":"539942503","full_name":"obss/react-curved-text","owner":"obss","description":"A React addon for creating circular / curved texts in React projects.","archived":false,"fork":false,"pushed_at":"2024-08-30T06:49:26.000Z","size":9685,"stargazers_count":39,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-13T00:49:28.616Z","etag":null,"topics":["circular-textview","curved-text","elliptic-curve-cryptography","elliptic-curves","react-curved-text"],"latest_commit_sha":null,"homepage":"https://obss.github.io/react-curved-text/","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/obss.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-09-22T11:17:29.000Z","updated_at":"2024-12-17T15:33:10.000Z","dependencies_parsed_at":"2024-02-08T17:05:47.848Z","dependency_job_id":null,"html_url":"https://github.com/obss/react-curved-text","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"225e3d0259b7acccddd9d65015dd635234b148c6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obss%2Freact-curved-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obss%2Freact-curved-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obss%2Freact-curved-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obss%2Freact-curved-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obss","download_url":"https://codeload.github.com/obss/react-curved-text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253850882,"owners_count":21973672,"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":["circular-textview","curved-text","elliptic-curve-cryptography","elliptic-curves","react-curved-text"],"created_at":"2024-10-05T10:05:57.713Z","updated_at":"2025-05-13T00:49:34.227Z","avatar_url":"https://github.com/obss.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-curved-text \u003c!-- omit in toc --\u003e\n\n\u003e react-curved-text a library for creating circular / curved texts in React projects.\n\n\u003cimg alt=\"exampletext\" src=\"https://raw.githubusercontent.com/obss/react-curved-text/master/public/curved-text-example.png\" /\u003e\n\n## Installation\n\n**react-curved-text** requires:\n\n-   React **18.0.0** or later\n\n```shell\nyarn add react-curved-text\n```\n\nor\n\n```shell\nnpm install react-curved-text\n```\n\n## Usage\n\n```js\nimport ReactCurvedText from 'react-curved-text';\n\nconst MyComponent = () =\u003e {\n    return (\n        \u003cReactCurvedText\n            width={300}\n            height={300}\n            cx={150}\n            cy={150}\n            rx={100}\n            ry={100}\n            startOffset={50}\n            reversed={false}\n            text=\"react-curved-text\"\n            textProps={{ style: { fontSize: 24 } }}\n            textPathProps={null}\n            tspanProps={null}\n            ellipseProps={null}\n            svgProps={null}\n        /\u003e\n    );\n};\n\nexport default MyComponent;\n```\n\n## Examples\n\n\nCheckout live examples on [react-curved-text-demo](https://obss.github.io/react-curved-text) page for various customizations.\n\nCheckout a [Live Example with Rotate Animation](https://stackblitz.com/edit/react-curved-text-animation).\n\n\n## API\n\n| **Prop**          | **Type** | **Required** | **Description**                            |\n| ----------------- | -------- | ------------ | ------------------------------------------ |\n| **text**          | string   | yes          | Text to be displayed                       |\n| **width**         | number   | yes          | Width of the SVG                           |\n| **height**        | number   | yes          | Height of the SVG                          |\n| **cx**            | number   | yes          | Center x of the ellipse                    |\n| **cy**            | number   | yes          | Center y of the ellipse                    |\n| **rx**            | number   | yes          | Radius x of the ellipse                    |\n| **ry**            | number   | yes          | Radius y of the ellipse                    |\n| **startOffset**   | number   | no           | Start offset of the text                   |\n| **reversed**      | boolean  | no           | Reverse the text path                      |\n| **textProps**     | object   | no           | Props to be passed to the text element     |\n| **textPathProps** | object   | no           | Props to be passed to the textPath element |\n| **tspanProps**    | object   | no           | Props to be passed to the tspan element    |\n| **ellipseProps**  | object   | no           | Props to be passed to the ellipse element  |\n| **svgProps**      | object   | no           | Props to be passed to the svg element      |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobss%2Freact-curved-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobss%2Freact-curved-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobss%2Freact-curved-text/lists"}