{"id":15064976,"url":"https://github.com/pittica/gatsby-plugin-trustpilot-widget","last_synced_at":"2025-04-10T13:07:47.489Z","repository":{"id":38427596,"uuid":"264052623","full_name":"pittica/gatsby-plugin-trustpilot-widget","owner":"pittica","description":"Trustpilot widget for GatsbyJS.","archived":false,"fork":false,"pushed_at":"2023-02-09T04:01:36.000Z","size":7104,"stargazers_count":0,"open_issues_count":12,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T16:32:20.789Z","etag":null,"topics":["gatsby","gatsby-plugin","gatsbyjs","pittica","trustpilot","trustpilot-widget"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@pittica/gatsby-plugin-trustpilot-widget","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/pittica.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-15T00:00:07.000Z","updated_at":"2021-11-05T11:27:48.000Z","dependencies_parsed_at":"2023-02-18T16:16:10.094Z","dependency_job_id":null,"html_url":"https://github.com/pittica/gatsby-plugin-trustpilot-widget","commit_stats":{"total_commits":27,"total_committers":1,"mean_commits":27.0,"dds":0.0,"last_synced_commit":"ae29f5ef071d228b95dccf631a910c1b6880662f"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pittica%2Fgatsby-plugin-trustpilot-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pittica%2Fgatsby-plugin-trustpilot-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pittica%2Fgatsby-plugin-trustpilot-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pittica%2Fgatsby-plugin-trustpilot-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pittica","download_url":"https://codeload.github.com/pittica/gatsby-plugin-trustpilot-widget/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142903,"owners_count":21054671,"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":["gatsby","gatsby-plugin","gatsbyjs","pittica","trustpilot","trustpilot-widget"],"created_at":"2024-09-25T00:28:50.380Z","updated_at":"2025-04-10T13:07:47.473Z","avatar_url":"https://github.com/pittica.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pittica/gatsby-plugin-trustpilot-widget\n\n![License](https://img.shields.io/github/license/pittica/gatsby-plugin-trustpilot-widget)\n![Version](https://img.shields.io/github/package-json/v/pittica/gatsby-plugin-trustpilot-widget)\n![Release](https://img.shields.io/github/v/release/pittica/gatsby-plugin-trustpilot-widget)\n![Gatsby Version](https://img.shields.io/npm/dependency-version/@pittica/gatsby-plugin-trustpilot-widget/peer/gatsby)\n![React Version](https://img.shields.io/github/package-json/dependency-version/pittica/gatsby-plugin-trustpilot-widget/react)\n\n## Description\n\n[Trustpilot](https://www.trustpilot.com/) widget for [GatsbyJS](https://www.gatsbyjs.org/).\n\n## Install\n\n[![npm](https://img.shields.io/npm/v/@pittica/gatsby-plugin-trustpilot-widget)](https://www.npmjs.com/package/@pittica/gatsby-plugin-trustpilot-widget)\n[![npm](https://img.shields.io/npm/dm/@pittica/gatsby-plugin-trustpilot-widget)](https://www.npmjs.com/package/@pittica/gatsby-plugin-trustpilot-widget)\n\n```shell\nnpm install @pittica/gatsby-plugin-trustpilot-widget\n```\n\n## Component Usage\n\nThe _username_, _template_ and _business_ fields **are required**.\n\nYou can get the data from the TrustBox in your businness panel on [Trustpilot](https://www.trustpilot.com/)\n\n```HTML\n\u003c!-- TrustBox widget - Review Collector --\u003e\n\u003cdiv class=\"trustpilot-widget\" data-locale=\"en-US\" data-template-id=\"TEMPLATE_ID\" data-businessunit-id=\"BUSINESSUNIT_ID\" data-style-height=\"52px\" data-style-width=\"100%\"\u003e\n  \u003ca href=\"https://en.trustpilot.com/review/USERNAME\" target=\"_blank\" rel=\"noopener\"\u003eTrustpilot\u003c/a\u003e\n\u003c/div\u003e\n\u003c!-- End TrustBox widget --\u003e\n```\n\nImport the component **TrustpilotReviews** in your component.\n\n```javascript\nimport TrustpilotReviews from \"@pittica/gatsby-plugin-trustpilot-widget\"\n```\n\nUse it in your code as component.\n\n```javascript\nclass MyComponent extends React.Component {\n  render() {\n    return (\n      \u003cTrustpilotReviews\n        language=\"en\"\n        culture=\"US\"\n        theme=\"light\"\n        width=\"100%\"\n        height=\"52px\"\n        template=\"TEMPLATE_ID\"\n        business=\"BUSINESSUNIT_ID\"\n        username=\"USERNAME\"\n      /\u003e\n    )\n  }\n}\n```\n\n### Attributes\n\nThe component has optional attributes which the user can use to set the aspect of the TrustBox.\n\n#### language\n\nSets the language of the locale and the language of the API.\n\n##### Default Value\n\n`en`\n\n##### Note\n\nIf you set the language attribute you have to set the _culture_ attribute too.\n\n#### culture\n\nSets the culture of the locale.\n\n##### Default Value\n\n`US`\n\n##### Note\n\nIf you set the culture attribute you have to set the _language_ attribute too.\n\n#### theme\n\nSets the UI theme of the TrustBox.\n\n##### Values\n\n- `light`\n- `dark`\n\n##### Default value\n\n`light`\n\n#### width\n\nSets the width of the widget.\n\n##### Default Value\n\n`100%`\n\n#### height\n\nSets the height of the widget.\n\n##### Default Value\n\n`52px`\n\n#### template\n\nIndicates the template ID.\n\n#### business\n\nIndicates the business ID.\n\n#### username\n\nIndicates the username.\n\n## Copyright\n\n(c) 2020-2022, [Pittica S.r.l.](https://pittica.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpittica%2Fgatsby-plugin-trustpilot-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpittica%2Fgatsby-plugin-trustpilot-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpittica%2Fgatsby-plugin-trustpilot-widget/lists"}